LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab order and clusters

I got a cluster which has 3 string controls. I also got 2 buttons on my
Dialog box panel. While setting the TAB order, I can only do it for the
cluster not the individual 3 string controls inside it. Seems they are
controlled by the order I inserted them and that's fine. My problme is that
in code I set focus to the first string control. User can then hit TAB key
to go to next string control. But user can not TAB out of the cluster. I can
use mouse to click on the border of the cluster or some place outside the
cluster boundry and then TAB works for Buttons, but then it won't TAB inside
the cluster.



vishi
0 Kudos
Message 1 of 4
(3,217 Views)
That's true, for some strange reason NI has made clusters and arrays selectable using tab and had neglected the fact that normally that is not very interesting to do...you always want to jump directly to the content, highlighting the border just makes the interface behave non-standard...(comments from NI?)

A half solution is to add a two controls, one outside and one inside the cluster and hide them from view by putting them outside thw window / cluster border). Do not make the cluster selectable by tab-navigation, but read the highlight property of those two controls..if the control outside is highlighted highlight the first text control in the cluster...Now if the user tabs and highlights the hidden control inside the cluster, highlight an object outside the clu
ster.

The tab order inside the cluster (and the order of the elements...) can be set by right-clicking on the border of the cluster and selecting "Reorder controls in cluster..."
0 Kudos
Message 2 of 4
(3,217 Views)
The order inside the cluster is set by the order in which the controls inside it are created. However, you can re-order these controls. Right click on the border of the cluster and select "Reorder controls in Cluster ...".

On the TABBING problem: Do you need the string controls in a cluster? Perhaps they could be separate on the front panel, then built into a cluster after user entry(?).

Tim
0 Kudos
Message 3 of 4
(3,217 Views)
I guess I have to separate them. Reason I had them in the cluster was that
once the user enters info in them, I return the cluster back to the calling
VI.

vishi

"Shan" wrote in message
news:506500000005000000F0F10000-1042324653000@exchange.ni.com...
> The order inside the cluster is set by the order in which the controls
> inside it are created. However, you can re-order these controls.
> Right click on the border of the cluster and select "Reorder controls
> in Cluster ...".
>
> On the TABBING problem: Do you need the string controls in a cluster?
> Perhaps they could be separate on the front panel, then built into a
> cluster after user entry(?).
>
> Tim
0 Kudos
Message 4 of 4
(3,217 Views)