04-01-2015 12:42 PM
entering data on front panel, would like to press the enter key on the keyboard and have the vi automatically advance to the next control i have set in my tabbing order. any ideas?
Solved! Go to Solution.
04-01-2015 12:51 PM - edited 04-01-2015 12:51 PM
Use an event structure with the 'key down' event to catch the enter key being pressed. You can increment the current value (tab) and write it back to the tab control (e.g. using property nodes/local variable). You might need to handle wrapping around if you go past the maximum number of tabs it goes back to the first tab.
04-01-2015 02:05 PM
A better option is to use the Key Down? event and use the right hand terminals to change Enter to a tab (ASCII 9).
04-01-2015 03:32 PM
Sometimes when I make a UI like you describe it will be a wizard like UI. In this there is a button for Previous, and a button for Next which increment and decrement the tab value. In this situation I just setup the Next button to have a key binding of Return to change the value. This then works like the user clicked in, and the code for pressing the button with the mouse is the same code called when pressing Enter.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-01-2015 03:37 PM
is this available for downloading to me?
04-01-2015 03:59 PM
What part was unclear? Using an event structure? Programatically changing tabs? Or Key binding so a key press toggles a button? All are easily researchable with example on NI.com and on the Example Finder for others.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-01-2015 04:03 PM
something new to me, will give it a try
thanks for the information.
04-02-2015 03:47 AM
Apologies - I thought you were talking about advancing through tabs in a tab control, not advancing through controls.