LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

short cut to boolean

I've used keyboard shortcuts to activate menu items -- it's very convenient to use ^o to open a file and ^q to exit the program, etcetera.  How do I use a keyboard shortcut to toggle a boolean?
0 Kudos
Message 1 of 5
(2,773 Views)

The easiest way is to use Key Navigation on the boolean (Properties > Key Navigation).  You could also get fancy and use Key Events on the panel, and toggle the boolean whenever a certain key is pressed.  Specifically, register for the "Key Down" event on the panel, then check the key that was pressed, and if it was a certain key, toggle the boolean with the Value(Signaling) property of the boolean, so if you have any events waiting on the boolean, those will fire as well.

-D

Message Edited by Darren on 01-11-2006 10:24 AM

0 Kudos
Message 2 of 5
(2,764 Views)
Have you tried to right clic on the boolean, choose "Advance" >> "Key navigation" and then select the shorcut you want.

dead easy as you see 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 3 of 5
(2,759 Views)

Hello

 

 

When we click on key navigation, there we can see only set of short cut keys available. What if we need to give some other key as short cut key?? 

Thanking you,
Sushmith
0 Kudos
Message 4 of 5
(2,370 Views)

then read Darrens reply again Smiley Very Happy

 

Greets, Dave
0 Kudos
Message 5 of 5
(2,364 Views)