Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AttachProportional only on X or Y (Read 1454 times)
feugen24
YaBB Newbies
*
Offline



Posts: 27
Joined: Sep 22nd, 2006
AttachProportional only on X or Y
Oct 10th, 2006 at 8:08am
Print Post  
Hi,

If I want to have 2 attached boxes (move together, resize together) but first should resize only when the second changes it's height but not width;  Attach Proportional is not good because it's both for height/width.
I can attach normaly and when MouseDown event is fired(NS cursor) I can detach them and then at BoxModifying event Resize the first box and reatach them at BoxModified...but in this case the first box has a visible delay when resizing. What other options do I have?
An attachproportional with only width/height should be usefull.
Tks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: AttachProportional only on X or Y
Reply #1 - Oct 10th, 2006 at 8:54am
Print Post  
Hi,

Groups in version 4.2.1 let you anchor child nodes to the edges of their parent node, similar to how the Anchor property of controls works in Windows Forms. You could use the Node.AttachTo(Node, GroupAnchorStyles) overloaded method or the Group.AttachToEdges method.

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



Posts: 27
Joined: Sep 22nd, 2006
Re: AttachProportional only on X or Y
Reply #2 - Oct 13th, 2006 at 7:55am
Print Post  
Hi,
Very nice improvement "Node.AttachTo(Node, GroupAnchorStyles) ". It saves a lot of code and tricks to do when working with attached objects.
It solved this and other problems.
Tks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint