10-20-2009 07:27 PM
Hi,
I have a question about how to activate the window to first front window.
I am using LV8.6.
Question?
I made a labview program such that it will pause the program using "one button dialog" box
if it see the test failure and while this "one buttone box" is active, I need to switch back
to main window, but at the moment I can not switch back to main window unless I close
the "one button dialog" box.
How do I switch the window to active while I don't close the "one buttone diaglog" box?
Can someone answer my question?
Thank you in advance.
Solved! Go to Solution.
10-20-2009 07:44 PM - edited 10-20-2009 07:45 PM
The one button dialog is Modal.
"Modal—Keeps the front panel on top of all other LabVIEW windows until you close the window or open another modal window. You cannot interact with other windows while a modal window is open. Most dialog boxes in LabVIEW are modal windows..."
You have no choice : you must close the one button dialog.
Jean-Marc
10-21-2009 10:57 AM
Hi, Thanks for the reply.
Do you know any alternative I can use instead of "one button dialogue" box?
10-21-2009 11:18 AM - edited 10-21-2009 11:21 AM
Create your own one button dialog (modify the template):
Select Default instead of Modal.
Start your new "one button dialog":
http://forums.ni.com/ni/board/message?board.id=170&thread.id=436924
Jean-Marc
10-21-2009 11:26 AM
Thank you very much for your detail informations!!!
I will try this.
10-21-2009 11:47 AM
Hi, one more question regarding this.
I see this customized one button window works fine to bring back and forward
as an active window, however at the end it doesn't go away even if I press O.K. button.
What am I doing wrong? Do I need to set some option to do that?
Thank you.
10-21-2009 11:48 AM
10-21-2009 12:13 PM
10-21-2009 01:09 PM
JM,
Thanks for reply.
I try your example it works, but if I put this into my program, it is not work.
So I have attached a VI whiich I simplied a lot.
Could you take a look at it?
Basically I want to pop the window and press O.K to close the window.
This way I can put this VI under my Case block to pause the test program if the condition is met.
Thanks,
DK
10-21-2009 02:48 PM
I am not sure that I understand what you really want. Could you post your main VI?
Jean-Marc