Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic "S" Style Arrows and Mouse Events (Read 3634 times)
Kortexito
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 6th, 2007
"S" Style Arrows and Mouse Events
May 5th, 2008 at 10:21am
Print Post  
Hi,

I have two questions:

1) I would like arrows to be bezier curves but perpendicular to diagram nodes, basically I want arrows to be like "S" letter (and remain like "S" when moving nodes). Is there a way I can accomplish this? Shoud I use DrawLink event and draw arrows by myself and how should I detect mouse clicks on custom drawn arrows etc. in this case?

2) I am hosting my own controls in DiagramNodeAdapters and I want some subcontrols of my control to react on MouseEnter and MouseLeave events, it works as expected except when a user draws arrows, it seems that the Diagram blocks mouse events when drawing arrows. How can I solve this?

Best Regards.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "S" Style Arrows and Mouse Events
Reply #1 - May 5th, 2008 at 12:42pm
Print Post  
Hi,

1) Use the RoundedLinks and RoundedLinksRadius properties and Cascading links.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "S" Style Arrows and Mouse Events
Reply #2 - May 5th, 2008 at 1:21pm
Print Post  
2) probably happens because the Diagram calls CaptureMouse() when the user starts drawing with the mouse. I suppose you could call Diagram.ReleaseMouseCapture() in response to the MouseDown event, but that might have some bad consequences on how the control tracks the drawing operation.

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


I love YaBB 1G - SP1!

Posts: 11
Joined: Jun 6th, 2007
Re: "S" Style Arrows and Mouse Events
Reply #3 - May 6th, 2008 at 9:05am
Print Post  
Hi Stoyo,

Thanks for replies.

1) I solved my problem by using simple bezier splines that have focuses "in front of" connected nodes anchor points. Btw, as for me this bezier curves config looks quite attractive, so you may want to include it in demo Tongue

2) Thanks, I will play with it.

Best Regards.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint