07-20-2011 03:30 AM
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
07-20-2011 04:05 AM
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
07-20-2011 04:08 AM
Yes, I know and use it.
But is doesn`t work on the second button. The focus is still on the first button.
07-20-2011 04:11 AM
Are you setting the 1st button to false, as well as setting the 2nd button to true?