05-28-2009 12:52 PM - edited 05-28-2009 12:56 PM
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
Solved! Go to Solution.
05-28-2009 01:04 PM
Wire true to "property >>> Key focus"
Ben
05-28-2009 01:10 PM - edited 05-28-2009 01:11 PM
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?
05-28-2009 01:12 PM
You wired a false constant. Just click on the boolean constant and it will change to a 'True' value.
Ton
05-28-2009 01:15 PM
05-28-2009 01:27 PM
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