LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set a key focus that still allows me to tab to the next sequential control?

I have 3 string controls with a tab sequence of 1, 2, 3, and I want control 1 to get key focus when I start the VI. I want to enter text into it, then TAB to control 2 and enter text, then tab to control 3 and enter text. But the KEY FOCUS property set to TRUE on control 1 keeps me locked on control 1 and I can't tab out of it.
0 Kudos
Message 1 of 4
(3,139 Views)
Would you mind posting your program?  If you set Key Focus outside of your control loop (if you have one), you shouldn't have problem.
 
I've attached an example.
 
The "Text.Selection" property makes any value in the first string control highlighted when the VI is started, so that the first string control acts the same as the other two.  Remove it if you don't need it.
0 Kudos
Message 2 of 4
(3,132 Views)

The "Text.SelStart" property works better.

Updated VI attached.

0 Kudos
Message 3 of 4
(3,127 Views)
Thank you! I just needed to take my key focus property OUT of my loop.
0 Kudos
Message 4 of 4
(3,122 Views)