From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pressing escape exits two button dialog

Solved!
Go to solution

Hello,

I have a Two Button Dialog that I am using to ask for the type of test being done.  I would like to disable the ability to skip the dialog pop-up if the user is holding the escape key.  Is there a way to do this?

 

Thank you,

0 Kudos
Message 1 of 3
(2,336 Views)
Solution
Accepted by topic author M. Bobby

 


M. Bobby wrote:

I have a Two Button Dialog that I am using to ask for the type of test being done.  I would like to disable the ability to skip the dialog pop-up if the user is holding the escape key.  Is there a way to do this?


 

It seems you want to remove the >esc> key navigation assignment from the dialog box.

 

Simply create your own dialog box (a simple subVI with a few buttons) and assign the key navigation the way you want it

 

(Right-click...advanced..key navigation).

 

(e.g. don't assign the escape key to the cancel button)

 

 

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

You can get started with the template "Dialog using events".

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