01-29-2009 04:43 PM - edited 01-29-2009 04:43 PM
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.
01-29-2009 06:09 PM - edited 01-29-2009 06:10 PM
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.
02-01-2009 10:09 PM
Or, change the Execution System to "user interface". This should also fix the problem.