Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Overlapping link arrowhead with connected shape (Read 2055 times)
hrobert
YaBB Newbies
*
Offline



Posts: 9
Joined: Jun 12th, 2009
Overlapping link arrowhead with connected shape
Jun 12th, 2009 at 9:36am
Print Post  
Hello,

I am trying to create a link whose end arrow head will overlap the border of the shape to which it connects. This is a screenshot of what I would like to achieve.



It looks like the normal behavior is that the link arrow head never goes beyond the intersection/anchor point. Does anybody know a way I could achieve that?

Thanks in advance,
Robert
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overlapping link arrowhead with connected shap
Reply #1 - Jun 12th, 2009 at 9:54am
Print Post  
Hi,

At this time you can't change the position of the arrowhead shapes. You could set HeadShape = None, CustomDraw = Additional, and handle the DrawLink event to draw a shape at the position of the last point in e.Link.ControlPoints.

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



Posts: 9
Joined: Jun 12th, 2009
Re: Overlapping link arrowhead with connected shap
Reply #2 - Jun 12th, 2009 at 12:52pm
Print Post  
Hi,

Thanks for your solution. That works really ok.

If I would like to have that arrowending appear also while user is drawing the link I think I need to create a custom link inherited from DiagramLink and override the Draw method. Am I right? I got this idea from the Fishbone sample. Or is it also another solution?

Thanks a lot,
Robert
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overlapping link arrowhead with connected shap
Reply #3 - Jun 12th, 2009 at 1:24pm
Print Post  
Hi,

Custom drawing should work also while creating new links. You could handle the InitializeLink event to initialize the properties of a new link when the use starts drawing it.

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