LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to force the cursor into a string control when a vi is called

In a .vi I'm wrighting I need to input a new serail number at the beginning of each run. Is there a way to force the cursor into the string control box every time the start screen returns? eliminating the need for the operator to move the mouse around and click.
 
I would like to THANK all that have replied to my questions in the past. It has been a big help!
 
Thanks
TeBlues
 
0 Kudos
Message 1 of 5
(3,184 Views)
Right click on the control and select Create -> Property.  Right click on the property and select Key Focus.  Right click again and select Change to Write.  Then wire a True constant to the Key Focus property.  When the code is run, the control will have focus, which means the cursor will be in the text box.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 5
(3,168 Views)
Create a property node for the string control and set the "KeyFocus" property to True.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 5
(3,165 Views)
There is a property called 'Key Focus' for your string control.  If you set this to TRUE after calling the vi, you will make this string control active.


I guess I was too slow Smiley Happy

Message Edited by rpursley8 on 11-20-2006 11:43 AM

Randall Pursley
0 Kudos
Message 4 of 5
(3,163 Views)

ah, problem solved.  what a community.

Message Edited by Space_Flight on 11-20-2006 10:08 AM

0 Kudos
Message 5 of 5
(3,156 Views)