Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Create group from already positioned nodes (Read 1858 times)
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Create group from already positioned nodes
Aug 1st, 2007 at 4:44am
Print Post  
Hi,

I have sets of Boxes already on the chart, and then call a 'Create Border' function to draw a box around these boxes (and add some padding).

I would like to now group these as children to the 'Border' box, but all the group.attach style functions require me to specify where the children are place in relationship to the main box.

Can I create a group that maintains the layout of the boxes on the chart, so I can move all the nodes programatically, simply by moving the border box?

Thanks in advance
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create group from already positioned nodes
Reply #1 - Aug 1st, 2007 at 6:36am
Print Post  
All styles supported by Node.AttachTo, except the proportional one, preserve the original children layout when simply moving the parent box. E.g. use the AttachToNode.TopLeft style. The difference between the styles is in how they handle resizing the parent box.

Stoyan
  
Back to top
 
IP Logged
 
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Re: Create group from already positioned nodes
Reply #2 - Aug 1st, 2007 at 8:17pm
Print Post  
Again, thanks Stoyo!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint