Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Origin and destination anchor to -1? (Read 1255 times)
Bass
YaBB Newbies
*
Offline



Posts: 31
Joined: Aug 27th, 2010
Origin and destination anchor to -1?
Sep 2nd, 2010 at 9:52am
Print Post  
Hi,

I noticed that when the event is fired for DiagramLink.LinkModified after moving the first or last control point of a DiagramLink to another ShapeNode, the DiagramLink.OriginAnchor and DiagramLink.DestinationAnchors are set to -1.

I am setting control points relative their position of the anchor they are attached to, so I need to know which anchor it is (top, right, bottom, left). With those values set to -1 I can not do that.

Is there a way around this?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Origin and destination anchor to -1?
Reply #1 - Sep 2nd, 2010 at 10:16am
Print Post  
Hi,

Have you set the SnapToAnchor property to OnCreateOrModify?

Stoyan
  
Back to top
 
IP Logged
 
Bass
YaBB Newbies
*
Offline



Posts: 31
Joined: Aug 27th, 2010
Re: Origin and destination anchor to -1?
Reply #2 - Sep 2nd, 2010 at 10:43am
Print Post  
That fixed it Grin

Many thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint