Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cancel DoubleClick Event (Read 2142 times)
dolfandon
Junior Member
**
Offline



Posts: 51
Location: Northern Virginia
Joined: Mar 12th, 2009
Cancel DoubleClick Event
Jul 12th, 2009 at 12:06pm
Print Post  
I was wondering how to cancel a double click event on a Node? The default behavior seems to be edit so I turned that off but now it wants to draw a link. I did not see anything in the event arguments that allows me to cancel it like the other click events have. Suggestions please. Thanks in advance.

Don Miller
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancel DoubleClick Event
Reply #1 - Jul 13th, 2009 at 7:25am
Print Post  
It should not create a link, unless the mouse moves between the mouse-down and up events. You could handle LinkCreating and set e.Cancel = true if the current distance between the link end points is very small. Use the DiagramLink.ControlPoints property to find the positions of the link points.

I hope that help,
Stoyan
  
Back to top
 
IP Logged
 
dolfandon
Junior Member
**
Offline



Posts: 51
Location: Northern Virginia
Joined: Mar 12th, 2009
Re: Cancel DoubleClick Event
Reply #2 - Jul 13th, 2009 at 1:55pm
Print Post  
This did not help. I am not moving the mouse and handling the LinkCreating event did not cancel the drawing of the link.

I checked the version and it is 1.0.1.25003. Should I download the trial again or is there an updated control?

Don Miller
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancel DoubleClick Event
Reply #3 - Jul 13th, 2009 at 2:59pm
Print Post  
Please try that with v1.0.3:
https://www.mindfusion.eu/DiagramLiteTrial.zip

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