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]