From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-26-2014 02:19 PM
Hi Guys!
I have a popup VI that I need to close when it loses focus, for example if the user clicks back on the mother program. I found an old example using the "is frontmost" property node, but this node won't give the feedback needed.
Have any ideas?
Thanks!
Christopher
Solved! Go to Solution.
03-26-2014 02:30 PM
The popup itself can't be modal because that will prevent it from losing focus.
03-26-2014 02:34 PM
Use an Event Structure. The event you are looking for is Application->VI Deactivation.
03-26-2014 02:36 PM
Is that a 2013 event? I don't see that in 2012.
03-26-2014 02:37 PM
Most "Pop-up" Dialogs are Modal. In order to get what you are seeking the pop-up must be "Floating"
Here is a quick example that may work close to what I thing you want---it may need some tweaks
03-27-2014 06:45 AM
Works like a charm, thank you!