LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting active field

Solved!
Go to solution

Is it possible to programmatically set the active field to a string control box so that the cursor is already in place and the user does not have to select the box with the mouse in order to start typing into it?

0 Kudos
Message 1 of 3
(2,116 Views)
Solution
Accepted by topic author JennyT

First there is setting the "Key Focus" to true

If TRUE, the control has key focus and receives the keys pressed on the keyboard.

 

Then there is Text.Selection:Start and :End if you wish to highlight and over write what may already be in the string control

Omar
Message 2 of 3
(2,109 Views)

Thanks for the post Omar!

 

For anyone who is a little less familiar with where to find the "Key Focus" or the "Text.Selection:Start" or ":End", it is a property node created from the string control in the block diagram. The picture attached here shows where to find each of the property node options.

 

Kim W.

Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,074 Views)