10-02-2007 11:28 AM
Hi,
I have an application with two monitors. The monitors are not side by side. My application use the function “dialog box” to wait for an input from the operator. Sometimes I have the problem the dialog box pop up on the second monitor. So the operator is confused that the buttons on monitor one are without function. For example on monitor one I have a RESET-STOP button without function.
Did someone have an idea how can I solve this problem.
Thanks in advance
Andreas
10-02-2007 11:30 AM
Dialogs are Modal, they are susposed to block all activity in the current thread of execution. If you want to avoide this use a non-modal floating window made to look like a dialog box or multithread your application. Remember that the purpose of a dialog is to block execution intil an input is satisfied.
Paul
10-02-2007 11:32 AM
10-02-2007 01:15 PM
10-04-2007 03:47 AM
Hi,
thanks everybody for the helpful replies. I have observed that the “dialog box” pop up on that monitor on which the frontpanel is in front. In case the operator clicks by mistake on monitor two and in the next time the dialog box pop up than the error occurs that the “dialog box” will pop up on monitor two.
For the future I will set just before the “dialog box” will be launched the property of the frontpanel on monitor one as “in front”.
Best regards,
Andreas