Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to prevent resize nodes in group ? (Read 1045 times)
Bogdan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 17th, 2009
How to prevent resize nodes in group ?
Jun 17th, 2009 at 7:26am
Print Post  
I create group (Diagram.Group) with main node and several "child" nodes added by AttachProportional.
I need them (child nodes) not to be resized when main node resizes. Only their locations (ShapeNode.Bounds.Location) must be proportional.

I don't want locate shapes at edge or at corner.

Is it possible ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to prevent resize nodes in group ?
Reply #1 - Jun 17th, 2009 at 9:26am
Print Post  
The size can be preserved only if the child node is attached with fixed offset from the parent's top-left corner, e.g. using the AttachTo(GroupAnchorStyles) overload. We can implement a "proportional" overload that allows that in the 5.3.1 release.

At this time it should be possible to implement this by handling the NodeModifying event raised for the parent and updating the children positions.

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