delphi - cxgrid custom menuitem (open with) for Image field -


in cxgrid have column "image" type.(properties=image,graphicclassname=tjpegimage). popupmenulayout - menuitems have added custommenuitem called "open with...". how can implement custom menu item opens underlying image paint (windows paint)? or @ least trigger "open with.." windows dialog.

if have image stored in database first have save image file on computer.

then can use shellexecute opening image default image viewing/editing program. shellexecute works same if user have double-clicked on file. problem doublec-licking on image file opens preview of if need edit image using of shellexecute might not best way.

now in order sure image opened editing rathen in preview have read windows registry information program used viewing , editing of specific image format , use createprocess api cal instead.

you make sure image opened specific program starting program using createprocess api call , passing image location startup parameter (most image editing programs treat first parameter file open upon startup


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -