11-07-2008 09:41 AM - edited 11-07-2008 09:41 AM
Hi, all,
I'm trying to find a way to get dialog VIs to terminate reliably and return control to the caller when the close ([X]) button in the upper right corner of the window is clicked. The attached example shows the problem. If you run RunMe, pop up the dialog, and then hit the dialog's [X] button, the dialog disappears, but the main VI apparently never knows about it. Does anyone know of a solution?
Thanks,
- Steve.
Solved! Go to Solution.
11-07-2008 09:54 AM - edited 11-07-2008 09:54 AM
Hi, Steve,
Just add Event Structure with Panel Close event and stop Dialog loop when Close event occurred:

Andrey.
11-07-2008 10:18 AM
Didn't quite work, at least in LV 8.5. For some reason, I can't mix button values and events; the button values never get sensed. But what's attached does work.
Thanks,
- Steve.