LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster Element Owning Pane Reference

I am trying to find a cluster element's owning pane master rectangle. So I make a property node to call that owning pane's reference, then I use that reference to get its Master Rectangle. The problem is that the Rectangle is different depending if I call the cluster or the element in that cluster. According to the help file this should not matter. "For nested controls, this property returns a reference to the pane that owns the object that contains the control."

 

Attached is a simple VI showing this difference. Am I just using it wrong? The pane name is the same.

0 Kudos
Message 1 of 5
(2,648 Views)

Seems to work as described for an array.  Maybe a cluster actually contains a pane?  It's been awhile since I've done some real scripting, so I would have to do some digging to check.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,640 Views)

Interesting, so I didn't know this, but a cluser is sorta seen as a pane to the objects in the cluster.  Attatched is an updated version of your VI that compares the references and shows that the Pane the cluster is in, and the Pane the objects are in are not the same.  I then made the VI highlight the two panes separatly so you can see that this is the case.  Is this documented somewhere?

Message 3 of 5
(2,571 Views)

Wow you are right. I was using the label to determine if the panes were the same, but by default they had the same name. I changed the Front Panel's label to "FP" and it is clear that they aren't the same.

0 Kudos
Message 4 of 5
(2,563 Views)

There is a similar situation on the block diagram, where all containers (loops, case structures, etc.) have one or more contained diagrams.

0 Kudos
Message 5 of 5
(2,527 Views)