LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accept a string input by pressing the ENTER key

when entering text into a string control, a check box appears next to the run arrow. I would like to clear the checkbox and accept the text by pressing the enter/return key
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 6
(6,835 Views)
By default, the Enter key (the one on the numeric keypad) does the same thing as that little check box. To make the Return key do the same thing, go to Tools>Options>Front Panel and check the "End text entry with Return key" checkbox.
Message 2 of 6
(6,835 Views)
If you plan to compile your application, you will need to create an INI file to distribute with your EXE in order to maintain the setting specified in the Tools>Options>Front Panel checkbox. Create the INI file in the same directory as the EXE and give it the same name with the following structure:

Application: MyApplication.exe
INI Filename: MyApplication.ini
Contents:
[MyApplication]
returnKeyAction=True
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 3 of 6
(6,835 Views)
On the right-click menu on the string control, check "Limit to single line". Text edition will end when clicking Enter/Return keys. The effect is the same as the text entry option suggested by Dennis, except it applies to a single control rather than to all application.


LabVIEW, C'est LabVIEW

Message 4 of 6
(6,835 Views)
I agree with your response, however I am trying to get the Enter key to act like the Return key while developing in the Labview environment.

For example pressing Enter in a string control makes a new line character and the cursor will drop a line and come to position zero in the control (when the environment is configured to do this.)

I would like the (numeric pad) Enter key to do exactly the same thing as the Return key while in a string control in the Labview environment. By default the (Numeric pad) Enter key shifts focus to the next control.

If there is a way to make it happen I'll be a happy camper, Thanks 🙂
0 Kudos
Message 5 of 6
(6,835 Views)
> I agree with your response, however I am trying to get the Enter key
> to act like the Return key while developing in the Labview
> environment.

There is a way to switch then, commonly used on laptops, but since
reconfiguring it this way would mean that you'd need to click away
everytime you wanted to complete text entry, this is the way the editor
works. If you want to switch them back and forth, the setting is in the
Tools Options, in the Miscellaneous page I think.

Greg McKaskle
0 Kudos
Message 6 of 6
(6,835 Views)