Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need to get parent container object? (Read 1728 times)
Ankur shah
Junior Member
**
Offline


I Love MindFusion!

Posts: 63
Joined: Mar 16th, 2017
Need to get parent container object?
Mar 23rd, 2017 at 10:24am
Print Post  
I am creating container using createContainerNode method and attaching the shape node to it. My problem is that we have created the factory for these type of custom container so i need to know which shape node is clicked for whcih container so that i can collapse the container using setFolded (true).

Can it be feaseable ?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Need to get parent container object?
Reply #1 - Mar 23rd, 2017 at 11:15am
Print Post  
If you mean the helper nodes attached to caption-bar of container from last thread using attachTo method, you should be able to get it by calling attachedNode.getMasterNode().

If you were adding a node to a container using ContainerNode.add method, then you'd call childNode.getContainer() - such nodes would hide when the container folds.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Ankur shah
Junior Member
**
Offline


I Love MindFusion!

Posts: 63
Joined: Mar 16th, 2017
Re: Need to get parent container object?
Reply #2 - Mar 23rd, 2017 at 12:34pm
Print Post  
Smiley Solved
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint