LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Locking front panel after one button dialog

Solved!
Go to solution

Lets say something happens that triggers a one button dialog to pop up which locks everything until you either x out of it or press okay.

Is there a way to keep everything on the front panel locked except for a single button, and the ability to switch between the two tabs that are on the front panel after you x out of the dialog box or press the okay button?

I want to be able to re-enable the front panel only when a certain button is pressed.

0 Kudos
Message 1 of 5
(838 Views)
Solution
Accepted by topic author Snow1810

Hi Snow,

 


@Snow1810 wrote:

Is there a way to keep everything on the front panel locked except for a single button, and the ability to switch between the two tabs that are on the front panel after you x out of the dialog box or press the okay button?


Sure, each control supports the "Enabled" property!

 

There are surely better ways to have your users follow certain rules of usage…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(835 Views)

Is there any way you can expand on the enabled state and when to use it?

Also I would 100% agree with you in terms of having the users follow certain rules, however, it is not my call in this situation.

0 Kudos
Message 3 of 5
(820 Views)

actually nvm. I understand now.

Thank you for jumpstarting my brain!

0 Kudos
Message 4 of 5
(807 Views)

If that dialog is modal, the entire panel of the caller is off limits, enabled or not as long as the dialog shows. You probably need to create your own popup and launch it asynchronously to have full control.

0 Kudos
Message 5 of 5
(753 Views)