LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

getting cluster ref from control in the cluster

Solved!
Go to solution

I have a control ref that is fed into a subVI.  The control itself is part of a cluster that is external code to the VI that I am working.  I want to get the label.text property of the cluster from the control reference inside the cluster that I have access to.  What is the mechanism or property of the control ref that lets me get to the cluster that contains it?

0 Kudos
Message 1 of 4
(3,543 Views)

I'm not by my comp with LV, but isn't there a property for elements?  With that, you can extract the element of interest and pull the label property?

0 Kudos
Message 2 of 4
(3,540 Views)

I need the label of the owning cluster, not the control which is my challenge

0 Kudos
Message 3 of 4
(3,535 Views)
Solution
Accepted by topic author id

The GObject class should have an Owner property. I believe that for objects inside a container (like a cluster), this returns the container. The property itself probably returns a GObject reference, so you'll need to cast it down to the Control class to see the label property.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(3,530 Views)