Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Detect connected anchorpoint (Read 2153 times)
lindborg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 30th, 2008
Detect connected anchorpoint
Dec 1st, 2008 at 9:44am
Print Post  
How can I detect which anchorpoint that is connected to a link? I would like to recolor the connected anchorpiont when a links is connected.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Detect connected anchorpoint
Reply #1 - Dec 1st, 2008 at 10:11am
Print Post  
In the LinkCreated and LinkModified handlers check the OriginAnchor or DestinationAnchor properties, depending on which AdjustmentHandle has been used. The *Anchor properties return the indices of the anchor points to which the link is connected.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Detect connected anchorpoint
Reply #2 - Dec 10th, 2008 at 5:11pm
Print Post  
Hi,

I have a question related to this.

How do I set the color back when all links have been deleted from an anchor point? I can use LinkDeleted, but I don't know if there are other links that are still attached to OriginAnchor and/or DestinationAnchor...

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Detect connected anchorpoint
Reply #3 - Dec 11th, 2008 at 12:24pm
Print Post  
Hi,

You'll have to iterate over all links attached to the node and check if any of them still has this point as Origin/DestinationAnchor.

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Detect connected anchorpoint
Reply #4 - Dec 11th, 2008 at 2:05pm
Print Post  
Hi Stoyan,

I'll do that then!

Thanks Smiley
Marie
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint