Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Restrict shapes within a master shape (Read 1926 times)
saad
Full Member
***
Offline


I Love MindFusion!

Posts: 117
Joined: Oct 8th, 2012
Restrict shapes within a master shape
Oct 30th, 2012 at 8:13pm
Print Post  
What I want is to restrict certain shapes within one big lane shape.

I also want those shapes to travel with the big lane when its height is being resized by user using handles.

I furthermore want the height to be restricted to minimum of the top of the blue shapes if they belong within the lane.
  

Capture_029.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Restrict shapes within a master shape
Reply #1 - Oct 31st, 2012 at 7:53am
Print Post  
You could attach the shapes to the lane node using AttachTo method to make them follow the lane when it's moved. If you also set their Constraints.KeepInsideParent property, you shouldn't be able to move them out of the lane. Setting laneNode.Cosntraints.MinHeight to the distance from lane's top to its children should let you prevent making the lane smaller.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
saad
Full Member
***
Offline


I Love MindFusion!

Posts: 117
Joined: Oct 8th, 2012
Re: Restrict shapes within a master shape
Reply #2 - Oct 31st, 2012 at 8:09am
Print Post  
I'm going to try that.
One thing, how do I find child node that is closest to the lane top?

Is there a way to get all attached child nodes?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Restrict shapes within a master shape
Reply #3 - Oct 31st, 2012 at 8:40am
Print Post  
You can find attached nodes via mainNode.SubordinateGroup.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint