04-14-2021 01:13 PM - edited 04-14-2021 01:18 PM
I figure I am missing something very trivial, but it is escaping me at the moment.
The calling VI is actually a subpanel, and there are 4 sub panels on my GUI. So the dialog gets a refence to the calling vi (in the subpanel), and then centers itself on the calling VI.
Once you press the OK button, the dialog should close, but it does not until much later. I can duplicate the issue with a simple calling VI
The QR Dialog Testing.vi calls the dialog subvi, enter any value for the QR code, and then hit the OK button on the dialog.
The dialog will remain open (with the OK button depressed), until the 5 sec timer runs out on the QR Dialog Testing vi and that VI stops executing.
Dialog Block Diagram
Attached VIs are saved in LV 2020 and 2018
04-14-2021 01:50 PM
04-14-2021 03:23 PM - edited 04-14-2021 03:25 PM
I am still seeing the issue unfortunately. I have this version of LV 2020. I am seeing the same issue in 2018 on another Pc I have, with and without the Snap to Center VI.
FYI - The Snap to Center VI is part of the LavaG UI tools Package.
I have tried to mass compile the VI as well, and rebooted LV and the PC.
I attached a video of what I am seeing.
04-14-2021 03:45 PM
I ended up recreating the same dialog from scratch, and now it works.......
Not sure what happened, I will see if I can find the root cause.
04-14-2021 04:02 PM
I'm not quite sure what is going on here, but it seems related to the mouse down event. If you change the "OK Button: Mouse down" even to "OK Button: Value change" the VI closes without the delay. Seems like the mouse down does some kind of other process that is preventing the window for closing.
04-14-2021 04:25 PM - edited 04-14-2021 04:26 PM
I am seeing some different, strange, behavior. If I type some text into the string control and then click the OK button shortly after, it won't register. If I wait some time, like 1.5 to 2 seconds, it will register the click. This happens on your VI, as well as a new VI I just made, and it even happens in edit mode.
However, I right-clicked the OK button and went to properties>>key navigation, and set the Toggle on the "Return" key. Then when I enter text into the string and press Enter/Return, it hits the OK button immediately. This won't trigger an event in your VI because you have it set to trigger on "Mouse Down" for the OK button, I just thought it was interesting.
04-14-2021 07:05 PM
Search the Forums for an example of my dialog template. They are not quite as easy to use for a multi linguist as AQ's Three Button Dialog Core.vi but, .....
A .vim ,without polling, replacement to the hideous TBD Core.vi is possible. AND IMHO should be developed!
You are 75% there