LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modal dialog does not dismiss when clicking OK

I have a problem with a modal dialog when running in my developer environment. The problem occurs if the dialog front panel is already open (I'm editing the code) when I run my program. Clicking the button that opens my modal dialog, presents the dialog and allows me to enter my data. Clicking OK on the dialog does not close the dialog, nor does it return control to the window that called the modal dialog. User input to my application is now denied. I have a timer displayed on the main window, and it continues to count up. If I take care to close the modal dialog window before running my application, it works fine.

 

My window appearance properties are:

Show front panel when called

Close afterwards if originally closed

Do not allow user to close window

Do not show menu bar

Do not show toolbar when running

Do not show abort button

Show run button

Of course behavior is Modal

 

How do I fix this?

 

0 Kudos
Message 1 of 4
(2,604 Views)

AFAIK this is the expected behaviour - something that every LV developer is going to hit sooner or later - and you can't help without aborting the execution of the program.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(2,600 Views)

did you connect the OK bool to a stop? if it is in a while loop

 

Creating Quality Dialog Boxes in LabVIEW

0 Kudos
Message 3 of 4
(2,597 Views)

could also mean that you are not transitioning out of that dialog vi, once you have pressed "ok" from the main vi.

0 Kudos
Message 4 of 4
(2,582 Views)