LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch focus between numeric controls in different clusters

Hello

 

I am a newby in labview and i have a question.

 

I have a user interface with a number a clusters with in each cluster a numeric control and some other controls.

When i enter a barcode in the numeric control of the first cluster and press enter i want to give the numeric control in the second cluster the focus.

What is teh best way to do this in Labvies

 

thanks in advance

0 Kudos
Message 1 of 3
(2,254 Views)

@Tonnie wrote:

Hello

 

I am a newby in labview and i have a question.

 

I have a user interface with a number a clusters with in each cluster a numeric control and some other controls.

When i enter a barcode in the numeric control of the first cluster and press enter i want to give the numeric control in the second cluster the focus.

What is teh best way to do this in Labvies

 

thanks in advance


You need to use an Event Structure.

 

Look at the included LabVIEW examples.

 

 

0 Kudos
Message 2 of 3
(2,244 Views)

Hi Tonnie,

 

You can do this by creating a reference to the control in the second cluster that you want to get Key Focus.

(Right click the control and select Create >> Reference)

 

When you detect the Value Change in the Numeric control in the first cluster, use the reference you created and a property node to set the Key Focus.

 

See the attached example.

 

steve

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 3
(2,237 Views)