Languages :: Delphi :: Launch another app from within and load a file |
|||
| By: progGoon |
Date: 03/02/2003 00:00:00 |
Points: 300 | Status: Answered Quality : Excellent |
|
I have a Icon viewer. I would like to double click the selected icon and have it loaded in my icon editor. Icons are selected from a stringgrid. |
|||
| By: VGR | Date: 04/02/2003 21:57:00 | Type : Answer |
|
| form, TImage or component receiving the icon for display, onClick [try to respond to double click... hummm never did it but it should be feasible, at least you can respond to left/right/accompanied clicks] then in the action associated to the event : ShellExecute(Application.Handle, 'open',PChar( 'youriconeditor.exe iconfilenameasparameter'),'','',SW_SHOWDEFAULT ); this will work if the ICO type is associated with your icon editor program. If not, you'll have to "spawn" the executable yourself, using the defunct Exec() if on TP/Dos, or a little more complicated function that I'll give you if on Win32 regards |
|||
| By: progGoon | Date: 04/02/2003 22:33:00 | Type : Comment |
|
| Thank You, just what I needed. progGoon |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








