LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keyboard focus two buttons

Hello,

 

I have two string controls and two buttons. The user scan a barcode in the first control and the "Enter" at the end of the scanner signal activate button 1. Now the focus jump to string control 2 and the user can scan a second barcode.

My problem is that I want to set the focus on button 2 now. That the Enter from the scanner activate button 2.

 

How can I handle this? Is this possible?

 

regards Schwede

0 Kudos
Message 1 of 4
(2,142 Views)

The property node 'key focus' will let you achieve this.

Right click the button, create, property node, keyfocus.

Drop it on your block diagram and wire up a true/false at the appropriate points in the code.

 

Ian

0 Kudos
Message 2 of 4
(2,135 Views)

Yes, I know and use it.

But is doesn`t work on the second button. The focus is still on the first button.

0 Kudos
Message 3 of 4
(2,132 Views)

Are you setting the 1st button to false, as well as setting the 2nd button to true?

0 Kudos
Message 4 of 4
(2,130 Views)