Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link created (Read 1853 times)
MeMoRis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Mar 19th, 2009
Link created
Apr 6th, 2009 at 11:04am
Print Post  
HI,
i want to test on the Link creating if the start and the end point of the link are under other shapes, if not i want to not create this link.
But if i insert a code on the LinkCreated methode i can't create any link.
thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link created
Reply #1 - Apr 6th, 2009 at 12:28pm
Print Post  
Are you deleting the link if node.Bounds contains the link's end points for some node? If you are using Rect.Contains(Point) to check this, perhaps you should add an if statement that ignores the link's Origin and Destination, because Contains returns true if the point lies exactly on the border.

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