ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Entering text into string control

I want to be able to add new lines to a string control at runtime.  I have the Limit to Single Line unchecked, but when I hit the Enter key, it moves the focus to the next control.  I tried Alt/Enter, Ctrl/Enter etc, and none of those work either.  When the vi is not running, it works fine.
 
TIA,
Bill F
0 Kudos
Message 1 of 7
(3,313 Views)
Check your environment options (LV 8 menus)
Tools->Options->Environment
uncheck End text entry with Enter key


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 7
(3,300 Views)
Thanks,
The "End text entry with Enter key" is unchecked.
 
Bill F
0 Kudos
Message 3 of 7
(3,299 Views)
weird.

have you tried deleteing the control and re-creating it?

Is it possible to post the vi?


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 4 of 7
(3,290 Views)

I created a new vi with a string control, and it works fine.  It just doesnt work on the vi I'm working on.  I couldnt find any vi settings that would affect that behavior.  I deleted the control and recreated it - same thing

Bill F

0 Kudos
Message 5 of 7
(3,286 Views)
The only way I can recreate it is if I build 2 string controls in LV < 8 (e.g. LV 7) and assign one to have a key navigation of <Enter>. 

Any chance this might have occured?  Does it always switch to a specific control?

ETA:
You can get it to happen LV 8 through the FocusKeyBind property (setting the key to <Enter>) despite this not being possible via menus (and despite what help says).

Message Edited by Jonnie 5 on 03-10-2006 11:47 AM



2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 6 of 7
(3,278 Views)

AHA!  Yes it does always switch to the same control.  That button had its key navigation set to <Enter>.  I turned that off and all is well.

Thanks,

Bill F

0 Kudos
Message 7 of 7
(3,263 Views)