Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Moving groups (Read 5422 times)
Jon Merrifield
Guest


Moving groups
Sep 19th, 2005 at 8:07am
Print Post  
Is it possible to set up a group so that moving a subordinate node moves the whole group?  I need to create a group of nodes which cannot be separated from each other, and I don't really want to disable moving the subordinate nodes.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving groups
Reply #1 - Sep 19th, 2005 at 8:18am
Print Post  
You could try the following:

1) Create a Transparent box in the background (set its ZIndex to 0)
2) Assign to its BoundingRect the union of all subordinate nodes rectangles + the current master node
3) Group all nodes to it, including the node you currently use as a master
4) Lock all subordinated nodes

Now if you click on any of the subordinated nodes, the invisible master node will be selected and moving it will move all attached items.

I hope that helps,
  Stoyan
  
Back to top
 
IP Logged
 
suwit
Guest


Re: Moving groups
Reply #2 - Sep 26th, 2005 at 4:22pm
Print Post  
Hello, can u show me a sample project.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Moving groups
Reply #3 - Sep 26th, 2005 at 5:24pm
Print Post  
This one creates a group of nodes like the described above:

https://mindfusion.org/_beta/Switch.zip

It's in VB.NET; you can create the group by double clicking.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint