I dont have a solution for that. The only place where I have used it so that only one instance of the launched app can run and it opens a new mdichildwindow is an expert for Delphi IDE. I just never realised that the app did not come to the front. :-)
From: "Phil Scadden" <[EMAIL PROTECTED]> Organization: Geological and Nuclear Sciences To: [email protected] Date sent: Tue, 30 May 2006 14:13:49 +1200 Priority: normal Subject: [DUG] Forcing a shellexecute window onto top. Send reply to: NZ Borland Developers Group - Delphi List <[email protected]> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> [ Double-click this line for list subscription options ] Having some fun with Shellexecute. I am using it from my program to get another application open one of its documents. No problem there. However, if the application is ALREADY running, then the document is opened within the existing application. Hmm. Not so good but no real problem. Now the real problem. If the application is covered by another window, this it is not brought to top and its not obvious that the document has been opened all. It looks like my application is not doing its job. I am calling shellexecute with shownormal. Any way to force the application to the top short of scanning the process list or findwindow and calling setwindowpos on that instance? ---------------------------------------------------------- Phil Scadden, Institute of Geological and Nuclear Sciences 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi Regards Rohit ====================================================================== CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH (649) 489-2280 FX (649) 489-2290 email [EMAIL PROTECTED] or [EMAIL PROTECTED] ====================================================================== _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
