We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

inherits from a SelectTool and override Mouse Events

Thread ID:





31413 Jul 7,2005 08:37 AM UTC Aug 12,2009 03:51 AM UTC WinForms 3
Tags: Diagram
Stephan Marrocq
Asked On July 7, 2005 08:37 AM UTC

Public Class MyTool Inherits SelectTool I would like to implement MouseDown Event on a customised class which inherits from SelectTool and not Tool as i can do it for a Clic Event on class Symbol Protected Overrides Sub OnClick(ByVal evtArgs As NodeMouseEventArgs) Dim newClickCount As Integer = Me.ClickCount + 1 Me.SetPropertyValue("ClickCount", newClickCount) MyBase.OnClick(evtArgs) End Sub ''OnClick

Administrator [Syncfusion]
Replied On July 7, 2005 01:08 PM UTC

Hi, The Essential Diagram SelectTool explicitly implements the Syncfusion.Windows.Forms.Diagram.IMouseEventReceiver, the interface responsible for processing mouse events in the interactive tools. The best way to go about customizing the Tool is not to subclass, but instead replace the default tool with a version that implements the behavior that you seek. The Essential Diagram ClassReference documentation on the SelectTool, the IMouseEventReceiver interface, and the following Essential Diagram KB article outlines how to go about customizing a diagram tool - http://www.syncfusion.com/support/kb/diagram/Default.aspx?ToDo=view&questId=48, will help you get started with the implementation. If you have access to the source code version of the product, then it should help to refer to the SelectTool implementation under the Src\Tools\SelectTool.cs file. Regards, Prakash Surendra Syncfusion Inc.,

Stephane Guerillot
Replied On August 11, 2009 02:48 PM UTC

I update this post.

I also have tried to implement a custom tool which inherits from SelectTool in order to replace the default tool. But I didn't find how to replace this default tool in the diagram.

I've looked at the Diagram and SelectTool classreferences, but the KD article http://www.syncfusion.com/support/kb/diagram/Default.aspx?ToDo=view&questId=48 seems unavaible.

Thanks for your help.

Gowri Manohari D [Syncfusion]
Replied On August 12, 2009 03:51 AM UTC


Please visit the below link for KB article.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon