06-24-2015 09:17 AM
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?
Solved! Go to Solution.
06-24-2015 09:19 AM
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?
06-24-2015 09:20 AM
I need the label of the owning cluster, not the control which is my challenge
06-24-2015 09:24 AM
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.