01-13-2006 04:13 AM
01-13-2006 06:17 AM
Perhaps something like this might help:
SetPanelAttribute (mainH, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);
DisplayPanel (mainH);
Delay (0.2);
InstallPopup (otherPanel);
RunUserInterface ();
The slight delay might encourage Windows to draw the windows in the order you require, rather than the (apparantly unpredictable) order that sometimes occurs.
JR
01-17-2006 09:09 AM
01-17-2006 09:22 AM
01-17-2006 03:22 PM
Roberto,
Please do keep us posted. I have also heard stories from our users that a panel displayed via InstallPopup appears behind the main program panel. However, it has been very, very rare and I have been unable to replicate it.
The common thread (so to speak) is that in our case it was also associated with a popup that displayed after some external interaction with either another app (via DDE or ActiveX) or with a floppy drive -- both of which are relatively slow processes.
Good luck!
--Ian
01-17-2006 04:10 PM
01-18-2006 11:47 AM
01-18-2006 12:56 PM
01-20-2006 02:32 AM
Hi all, yesterday I visited my customer and tried to modify the program according to some of your suggestions. It seems that the problem is solved now by simply adding a delay like JR suggested with a ProcessDrawEvents as an addition, but...
...but really I made a second major modification to the whole application that is in the line of Ian suggestion -even though I didn't saw his post yesterday: I would had made some check in this direction...
Basically, my application must interact with plant profibus network via an Applicom network card. Now the situation is that network board initialization is a **very** long process: I had configured this as a service in WinXP so that it should start before my application does, but really this service starts about two minutes AFTER windows has completed starting, that is well after my application tries to access the network (consequently getting an error from the driver). Since this is not accettable in my application (an automatic tester on a production line: the operator is not supposed to know anything about computers and network and so on, so the machine must start without errors and without human intervention) I modified setup of the system so that network driver is *surely* started before my app.
At the end of all, the application runs OK, but unfortunately we don't know exactly if the solution is on the of JR or Ian suggestions