Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Source and Dest Anchor points (Read 1493 times)
FusionUser
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Apr 4th, 2006
Source and Dest Anchor points
Apr 9th, 2006 at 9:15pm
Print Post  
Is it possible to get the source and destination anchor points inside an ArrowCreating event?  I have several incoming and an outgoing anchor point in a table and i need to check whether the arrow that being created by the user can be allowed by checking the anchor point's tag property.  Is this possible?
  
Back to top
 
IP Logged
 
FusionUser
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Apr 4th, 2006
Re: Source and Dest Anchor points
Reply #1 - Apr 10th, 2006 at 12:26am
Print Post  
Seems like this is working:

Seems like this is working:

           Table  dest = e.Destination as Table;
           AnchorPoint p = dest.Rows[e.TableRow].AnchorPattern.Points[0] as AnchorPoint;
           string destD = p.Tag as string;

           Table origin = e.Origin as Table;
           AnchorPoint  p1 = origin.Rows[e.AnchorIndex].AnchorPattern.Points[1] as AnchorPoint;
           string OrgnID = p1.Tag as string;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Source and Dest Anchor points
Reply #2 - Apr 10th, 2006 at 4:44am
Print Post  
That looks fine. Instead of using 0 and 1 as indices, you could get the actual indices from the Arrow.OrgnAnchor property and the args.AnchorIndex
argument of the ArrowCreating event.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint