LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog VI: Caller locks up when close [X] clicked

Solved!
Go to solution

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.

 

Message Edited by SPM on 11-07-2008 09:41 AM
0 Kudos
Message 1 of 3
(2,621 Views)

Hi, Steve,

 

Just add Event Structure with Panel Close event and stop Dialog loop when Close event occurred:

 

 

Andrey.

Message Edited by Andrey Dmitriev on 11-07-2008 04:54 PM
0 Kudos
Message 2 of 3
(2,613 Views)
Solution
Accepted by topic author SPM

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.

 

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