Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Keep the connection points at resizing the node (Read 1245 times)
Cornel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Dec 17th, 2008
Keep the connection points at resizing the node
Sep 18th, 2009 at 8:46am
Print Post  
Hi All,

I have a rectangular shape node with some links connected to it and I need to create the following functionality:
- when the node is horizontally resized the links connected to top and bottom edges must keep their X as long as that X is on the edge; as soon as the X goes outside it should remain glued to the end of the edge;
- when the node is vertically resized the links connected to left and right edges must keep their Y coordinate as long as that Y is on the edge; as soon as the Y goes outside the edge it should remain glued to the end of the edge.

How could I create such functionality?

Thanks,
Cornel
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Keep the connection points at resizing the nod
Reply #1 - Sep 18th, 2009 at 11:08am
Print Post  
Hi,

If you are using a custom node class, you could override its UpdateModify method and return the end points of the node's links to their original X or Y position, after calling base.UpdateModify.

Another possibility might be to create node groups, where the links are connected to an internal locked node that stays the same size when the other node is resized.

We could also add a new event that would be raised to let you set your own link points or node bounds during interactive modification.

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