Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Selecting Items within a group (Read 1815 times)
samuelt
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Dec 23rd, 2010
Selecting Items within a group
Jan 4th, 2011 at 12:14am
Print Post  
Hi,

I searched this forum and found a code to create a group.

Code
Select All
private void CreateGroup(DiagramNode node, DiagramNodeCollection children)
{

Rect r = Rect.Empty;

foreach (DiagramNode child in children)

{


Rect cb = child.Bounds;


r = r.IsEmpty ? cb : Rect.Union(r, cb);

}

double margin = 5;

r.Inflate(margin, margin);

node.Bounds = r;

foreach (DiagramNode child in children)


child.AttachTo(node, AttachToNode.TopLeft);
}
  



However, I'm trying to find a way to select the item inside of the group to resize, move and link to/from.

I need to do this a couple of nested groups down as well. What do you think is the right approach?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selecting Items within a group
Reply #1 - Jan 4th, 2011 at 10:28am
Print Post  
Hi,

I can't see any problem selecting attached nodes while using default settings and having the master node at lower Z index. Please check if your child nodes are not Locked, and perhaps try different values for the HitTestPriority and SortGroupsByZ properties.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
samuelt
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Dec 23rd, 2010
Re: Selecting Items within a group
Reply #2 - Jan 5th, 2011 at 4:13pm
Print Post  
Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint