LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keyboard focus on string control

Solved!
Go to solution

I have a sub-VI that is automatically called up in several situations within my main VI.  For the most part, the user would use the mouse to interact with it but I also want the user to have the option of using the keyboard.  There is only one string control (called display) that the user can type into, and all i want to do is for the keyboard to 'focus' on it so the user can type in it without having to click on it first.  Is this possible and if so, how?  I've tried and failed so far.

 

I've also got another query about the attached VI.   You will notice that I am using two local variables for the string control mentioned above.  I have tried to eliminate any possible race conditions, but am still wondering if there is a way or even a need to get rid of them.  Please advise.

 

Thank you in advance.

 

James

Message Edited by James Mamakos on 05-28-2009 06:56 PM


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 1 of 6
(6,469 Views)
Solution
Accepted by J.Mamakos

Wire true to "property >>> Key focus"

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 6
(6,463 Views)

I've tried that (see bottom left corner of code) but it doesn't seem to work. 😞

 

Also, is there a need to try to get rid of the local variables?

 

Message Edited by James Mamakos on 05-28-2009 07:11 PM


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 3 of 6
(6,459 Views)

You wired a false constant. Just click on the boolean constant and it will change to a 'True' value.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 6
(6,452 Views)
Wow - my bad!  I think i should just give up and go to bed! 😉


Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 5 of 6
(6,450 Views)

James Mamakos wrote:
Wow - my bad!  I think i should just give up and go to bed! 😉

 

We all have those days when we can appreciate having the community here for a second set of eyes. In this thread I declared myself brain-dead after Dennis pointed out the obvious.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 6
(6,436 Views)