取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
3,359 次查看

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.



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 项奖励
2 条消息(共 5 条)
3,351 次查看

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?

3 条消息(共 5 条)
3,282 次查看

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 项奖励
4 条消息(共 5 条)
3,274 次查看

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

0 项奖励
5 条消息(共 5 条)
3,238 次查看