LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use KeyFocus

Solved!
Go to solution

Hi,

I have an application I am working on,  its a keyboard of booleans buttons that when pressed insert the associated text in a display control box. That works fine.

What I want is to have another control box,when the user click into this control the text goes into this box,when they click into the other control the text goes in there.

Sounds simple enough but my problem is with keyfocus. They click into control 1 and keyfocus on that control is true,but then its lost because they press the booleans on the keyboard and any code based on the control having keyfocus doesnt work as intended. 

I did investigate was it possible to disable keyfocus on the other booleans as a solution but that does not appear possible.

Any ideas gratefully received. 

 

0 Kudos
Message 1 of 4
(3,362 Views)

Can a mod delete please I got it done in a much simpler way ..no need for keyfocus .

Message 2 of 4
(3,329 Views)
Solution
Accepted by topic author Connexus

Here's some idea, might not be the smartest way... but it might help.

 

 

Message 3 of 4
(3,328 Views)

That code is exactly what I was looking for Thank you!

 

0 Kudos
Message 4 of 4
(3,316 Views)