visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: Delphi :: Launch another app from within and load a file


By: progGoon U.S.A.  Date: 03/02/2003 00:00:00  English  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 English  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 English  Type : Comment
Thank You, just what I needed.
progGoon

Do register to be able to answer

EContact
browser fav
page generated in 294.659850 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page