Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Oct : Simulating ShowModal
| Subject: | Simulating ShowModal |
| Posted by: | "ulf_honkanen" (ulf_honkanen_nospam@yahoo.com) |
| Date: | Sat, 27 Oct 2007 00:04:45 |
Hello,
I have an application that is calling an external exe. I would like to
simulate a ShowModal for the main windows of that external program, so when
the program is executed:
1) You cannot access the original program.
2) The z-cordinates of the programs is keeped
I have implemented this with an "ExecuteAndWait" procedure. This works great
for 1), ie, the first program is inaccessible while the second program is
executing. But 2) is not working. If the user clicks on some other
application, or uses Alt-Tab, etc, when the second program is closed, there
is no guarantee that you get back to the first app...
Maybe there is no reliable form of doing this, or...?
Regards