LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keyfocus for multiple controls in a cluster of clusters

Hello friends!

I have a front panel, which is made up of three tabs. Each tab has one cluster made up of a number of strict type deffed cluster of two numerics. User would be editing these controls. What I want to achieve is that the key focus should move to the appropriate numeric control when the user moves his mouse over it so that the value it contains become highlighted. The way I think it can be done is tediously long (i.e., create a mouse enter event for each control (several hundred of them) and using the control reference, in the event case, set the key focus to true) Is there an easier way to do that.
0 Kudos
Message 1 of 22
(4,252 Views)
Hi rashid,

"Is there an easier way to do that?": Based on "when the user moves his mouse over it" - (IMHO) no. Smiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 22
(4,249 Views)
Hi rashid,
you can use dynamic events. See the attached example. To get all your references automatically out of the cluster, there are lots of example in the forum.
 
Hope it helps.
Mike


Message Edited by MikeS81 on 06-18-2008 11:28 AM
0 Kudos
Message 3 of 22
(4,246 Views)
Nooooooo! Oh boy that leaves me with a lot of labour.

Thanks for the clarification, GerdW!
0 Kudos
Message 4 of 22
(4,242 Views)

Hi rashid,

did you see my post? I thought that´s what you mean.

Mike

0 Kudos
Message 5 of 22
(4,238 Views)
Thanks Mike, for the great VI. It certainly added to my knowledge. But the problem still remains that to add soooo many references to be built into array. Any easier way to obtain references to  all those controls programmatic ally?
0 Kudos
Message 6 of 22
(4,237 Views)
Hi rashid,
there is a way with which you can get an array of all elements in your cluster. See this link
 
Mike


Message Edited by MikeS81 on 06-18-2008 11:49 AM
Message 7 of 22
(4,230 Views)
Thanks Mike for this great example of using dynamically registered events.

Hi rashid,

you're very demandingSmiley Very Happy

You know you can open a reference to the vi, get the reference of the front panel to get the references to ALL controls? Now you only have to sort out the needed controls from this array...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 22
(4,228 Views)

Yes you can. Smiley Happy

You have to use the property node from the Application palette & choose the appropriate VI Server Class to get the references of all the Controls/Indicators present on the FP or inside a Cluster & so on...

See the attached VI.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 22
(4,224 Views)
Yes MIke! I did see your post and VI. And yes that's what I want (the end result, i.e., key focus) but there are soooo many controls that getting references to all these looks overkill to me. Anyway, thanks soooo very much for being such a great help.
0 Kudos
Message 10 of 22
(4,217 Views)