From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-21-2011 05:37 AM
12-21-2011 05:52 AM
In the past I have monitored the "Mouse Leave" event and started a timer. If the timer reaches a certain value, such as 2 seconds, I automatically cause the panel to close. I know this isn't quite what you wanted, but I'm not sure if there is a way to get Focus events?
12-21-2011 06:05 AM
12-21-2011 06:31 AM
12-21-2011 06:49 AM
12-21-2011 10:10 AM
02-08-2013 05:36 PM - edited 02-08-2013 05:37 PM
Hi Everyone,
I think I might have found a tricky workaround (maybe it was already found before but didn't find anything related to).
Actually it is not a perfect workaround ( i.e detect the event of focus lost) cause it only works when compiling the .vi using the Xcontrol in an executable. It make the trick for my application so I would like to share it with you.
When executing as a .vi it doesn't work. See attached code.
1°) Launch the UnitTest.vi (LabVIEW 2012). None dialog box appear as a result of lost focus event.
2°) launch the executable "UnitTest.exe" in the build folder. Follow the same testing process as describe on the front panel. Now the lost focus event is detected.
The main part of the code making it possible is registering a callback in the Init.vi ability of the Xcontrol.
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France
02-10-2013 11:09 AM
02-11-2013 02:37 AM
Sure I saved it as 9.0/10.0/11.0.
Regards
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France