LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I move the in-focus panel to the "back", so that new windows/dialogs appear in front of it?

Hey,

 

 I'm currently trying to implement this vi ( http://forums.ni.com/ni/board/message?board.id=170&thread.id=157121&view=by_date_ascending&page=1 ) into a folder selection sequence of my main GUI. The problem I am having, however, is that the dialog created by the .vi (which itself is just a call to an associated .dll) is showing up behind my GUI. If the user is attentive enough to notice the new window showing up in his taskbar and clicks on it to bring it to the front, then everything is fine. I'd prefer, though, that the dialog showed up in front of my GUI.

 

I can't seem to replicate this quickly in a simple .vi. It might be an issue of Vista [dev machine] versus XP [application machine], or built application versus IDE, or or or...

If there's a way to programmatically change windows focus, or "send current window to the back", that would probably solve the problem.

 

If not, I can try harder to replicate the issue in a simple VI and upload it.

Message Edited by AlexK on 01-29-2009 04:43 PM
0 Kudos
Message 1 of 3
(2,540 Views)

As long as you make the calling vi front panel window the owner of the dialogue box, it should always stay in front of it's owning window until it is dismissed.

 

 

Message Edited by Troy K on 01-30-2009 11:10 AM
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 3
(2,524 Views)

Or, change the Execution System to "user interface". This should also fix the problem.

0 Kudos
Message 3 of 3
(2,487 Views)