LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Same key assignment (Enter) to multiple buttons

Hello,
 
How can I make certain (default) buttons on different tabs respond to the Enter key? Using the Key Navigation properties, I can only assign to one button. I'd like to set a "default" button, similar to the way you can do it in VB by setting default buttons in a form, and that button would be the one to respond to the Enter key.
In LV, would I have to program this functionality using the event structure (vkey?) and figure out which page in the tab control is visible, etc?
 
Thanks,
Sima


Message Edited by Sima on 02-04-2008 03:11 PM
0 Kudos
Message 1 of 4
(3,088 Views)
You could set an event for the Tab Control - Value Changed, get the value it was changed to (which tab is visible) and set the control on that tab to work with the [Return] key. That way you don't have to continually poll to see which tab is visible.

Robot wink
0 Kudos
Message 2 of 4
(3,076 Views)

Hi Sima

i think you have to program this function. You can use an EventStructure and give this Button the "KeyFocus" which is visible at the moment.

Mike



Message Edited by MikeS81 on 02-04-2008 02:27 PM
0 Kudos
Message 3 of 4
(3,075 Views)
Another method would be to move the Enter button off the tab control. It could be seen and activated regardless of which tab page is selected. Then only one button would be required and it could retain the key assignment.

Lynn
0 Kudos
Message 4 of 4
(3,069 Views)