Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic merging links (Read 2181 times)
hoffmandev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 29th, 2007
merging links
Nov 1st, 2007 at 1:58pm
Print Post  
Hello,

I am curious if I am able to "merge" several links into one link. What I want to do is to take multiple links and select them. After the links are selected I would like to perform an action (I.e.: button click) to merge them together into one link. I would like to merge them while preserving their anchors.

Is this possible?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: merging links
Reply #1 - Nov 1st, 2007 at 2:15pm
Print Post  
Hello,

At this time the control does not support merged links.

I guess you can implement merged links by overriding the UdateModify method of DiagramLink. That method receives as an argument the index of the link's control point that is being dragged. If you detect that this is a shared control point of some merged links, then update the positions of the other links' points by calling their UpdateModify method as well.

That should work when the user modifies a link. You will probably need to add extra code for links that are modified programmatically, e.g. by the Route() method.

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