Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need to override AnchorPoint linking behavior (Read 1456 times)
snype
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 7th, 2011
Need to override AnchorPoint linking behavior
Aug 24th, 2011 at 4:15pm
Print Post  
I have a DiagramNode with two anchorpoints one is valid for creating link and another one is not. When I try to create a link from the invalid anchorpoint, it automatically diverts the link to the valid anchorpoint and start the link from there. How can I override this behavior.
My requirement says if the user tries to start a link from an invalid anchor point , then donot allow him to create a link from that node at all. It's the user's job to start the link from valid anchor point.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to override AnchorPoint linking behavior
Reply #1 - Aug 24th, 2011 at 5:04pm
Print Post  
You can do that using a custom behavior class that returns null if there's no valid anchor point under the mouse position. The code here should be a good starting point, just add a check for what you consider a valid anchor point and return null if the point is invalid:
http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=128273...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint