LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re-setting the Keyfocus after "Key Down" event?

My fault. I attached the wrong VI. Try this one.
0 Kudos
Message 11 of 13
(686 Views)
Hey presto, it worked! It seems the trick is to set any control's Keyfocus to TRUE, before you enter the While loop? (I accidentaly set the listbox's Keyfocus to true, instead of the New User's Keyfocus - on my first attempt to copy your example, and that also worked!)

Thanks a lot for your help!
Marilie
0 Kudos
Message 12 of 13
(686 Views)
A few tips:
(1) Set the string control to "limit to single line". Now enter accepts the entered name instead of going to a new line.
(2) Simply use an event for "value changed" of the string control. It will get triggered with every "enter".
(3) Set the keyfocus before the event structure.

See attached example (LabVIEW 6.1).
Message 13 of 13
(492 Views)