LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab Order

I have three cluster i want to set focus using TAB key, from one cluster Sub control(Inside of cluster) to another cluster sub control(Inside of Cluster).What is the way to achieve this.
0 Kudos
Message 1 of 4
(2,838 Views)
Go to the help of Labview => go to search => and type "Tabbing through cluster elements".
You will get an explanation of how to tab trough cluster or array elements.

Maybe this is enough in your case!
Message 2 of 4
(2,838 Views)
> Go to the help of Labview => go to search => and type "Tabbing through
> cluster elements".
> You will get an explanation of how to tab trough cluster or array
> elements.
>
> Maybe this is enough in your case!

If the built-in behavior isn't enough, you can use the event structure
to detect when the tab would cycle through the cluster again or when it
would select the outer cluster. Then you can use the event data and set
the keyboard focus property for the control you want to take the focus.

Greg McKaskle
0 Kudos
Message 3 of 4
(2,838 Views)
Hi,

The attached VIs uses the event callback to tab through clusters (not
arrays). This is very nice way to do it, because the vi is very easy to
reuse.

There are a few 'buts':

1) When focus is given to a control by mouse clicking in it, the tabbing
order is not changed (pressing tab will continue where it left off before
the click).
2) The code is quick and dirty.
3) The VI doesn't work well when the main is running continuosly (hence the
900000 ms wait).
4) There might be issues when other event structures or event callbacks are
used.

1) can be resolved, by checking each control references to see if it has
focus. This might take some time with many controls, so I didn't build it
in. 2) can be resolved, by putting some time in it. Any
way, the dirty code
is hidden inside the subvi. The cluster itself is tabbed, but only when
tabbing is on.

Regards,

Wiebe.

"Greg McKaskle" wrote in message
news:lZF3c.18703$u53.18632@fe1.texas.rr.com...
> > Go to the help of Labview => go to search => and type "Tabbing through
> > cluster elements".
> > You will get an explanation of how to tab trough cluster or array
> > elements.
> >
> > Maybe this is enough in your case!
>
> If the built-in behavior isn't enough, you can use the event structure
> to detect when the tab would cycle through the cluster again or when it
> would select the outer cluster. Then you can use the event data and set
> the keyboard focus property for the control you want to take the focus.
>
> Greg McKaskle
>



[Attachment Tab In Cluster.zip, see below]
0 Kudos
Message 4 of 4
(2,838 Views)