Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to cancel a re-anchoring of a link? (Read 1437 times)
Khaostyke
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Jan 27th, 2010
How to cancel a re-anchoring of a link?
Feb 3rd, 2010 at 7:19pm
Print Post  
Hi,

Here is my problem. I have 2 table nodes linked together. I want to grap the link and drop it on another table node. But I need to validate if the link can be attached to the new table node. For now, I use the event ValidateAnchorPoint on my diagram, but even if I cancel, the link doesn't return at its original place. (the link stay at the drop position.... if I don't cancel, the link automatically snap to the only one anchor point that accept incomming connection on my table node).

So, what I have to do to cancel for real the re-anchoring operation?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to cancel a re-anchoring of a link?
Reply #1 - Feb 3rd, 2010 at 7:31pm
Print Post  
Hi,

You could do that from the LinkModifying handler by setting args.Cancel = true. The args.Node argument specifies what node will become the new origin or destination if the event is validated.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Khaostyke
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Jan 27th, 2010
Re: How to cancel a re-anchoring of a link?
Reply #2 - Feb 3rd, 2010 at 7:41pm
Print Post  
Works perfectly. Thx for your help.. very appreciated.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint