Public Class MyTool
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
End Sub ''OnClick
ADAdministrator Syncfusion Team July 7, 2005 08:08 AM
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.
SGStephane GuerillotAugust 11, 2009 09:48 AM
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.