Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change the group of a node (Read 1054 times)
antonis74
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Oct 22nd, 2007
Change the group of a node
Nov 10th, 2009 at 7:20pm
Print Post  
Hi,
I noticed that when you have a node grouped with other (its not the mainitem) and you change its group by calling othergroup.attach, the node stays in the old group.
Do I have to remove it from the first group or is there something else?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change the group of a node
Reply #1 - Nov 11th, 2009 at 9:00am
Print Post  
If you are using the methods of the Group class, you must first detach the node before attaching it to another group. The DiagramNode.AttachTo method does that automatically.

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