LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign cr to a button action

I have a Labbiew 8.2 Dialog box with two buttons.  I want to make one button the default to that when enter is pressed, the button acts like the user has just clicked on the button.  It seem like this should be very easy, but I can not find where to do this.
0 Kudos
Message 1 of 5
(2,851 Views)
Hi!
 are you using the default LabVIew function "two buttons dialog"? There, I don't know if you can set the keyboard shortcut.

   Otherwise, if you are building your own dialog, you can assign shortcut to button with right click on button, --> advanced --> key navigation ...   and there you can assign <enter> as key assignment.

   Hope this helps!

graziano
0 Kudos
Message 2 of 5
(2,846 Views)
Thanks, but I tried that.  I can set the focus, but not get a button press when the enter is pressed.  Did I just do something wrong?
0 Kudos
Message 3 of 5
(2,844 Views)
Oh crud...it was my event handler..thanks.
0 Kudos
Message 4 of 5
(2,843 Views)
You should also take a look at the buttons in the "System" palette. The "System Buttons" (the "OK" one) is set up with the key navigation by default.
0 Kudos
Message 5 of 5
(2,823 Views)