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. Image for the cookie policy date

inherits from a SelectTool and override Mouse Events

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

3 Replies

AD Administrator Syncfusion Team 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.,

SG Stephane Guerillot 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.

GM Gowri Manohari D Syncfusion Team August 12, 2009 03:51 AM UTC


Please visit the below link for KB article.



Live Chat Icon For mobile
Up arrow icon