Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link movement between nodes (Read 1237 times)
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Link movement between nodes
Dec 24th, 2009 at 10:05pm
Print Post  
How can I capture change of origin/destination of link when it is changed between 2 nodes? For ex. I have 3 tables, between #1 and #2 is link. I manually change destination of link to table #3. How to capture this? i need to change data in dataset after this "operation"!

Theres event OriginAnchorChanged and DestinationAnchorChanged but they are fired everytime when origin/destination is changed (while moving node with linked link too Sad ) and I cant retrieve necessary data from AnchorPointEventArgs object.

I thik I can combine LinkStartModifying event (where I set any object (tag of link?) with original origin/destiantion of link) and LinkModified event where I perform control and needed operation.

Is there way how to do it "naturally"? Maybe Im blind coz I havent found it on forum, but Im first who needs this behaviour???

...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link movement between nodes
Reply #1 - Dec 26th, 2009 at 7:24am
Print Post  
Hi,

If args.AdjustmentHandle == 0 in LinkModified, query the database to see if the stored origin corresponds to link.Origin; update it if it doesn't. You could do the same for link.Destination if args.AdjustmentHandle == link.ControlPoints.Count - 1.

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