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.
Unfortunately, activation email could not send to your email. Please try again.

inherits from a SelectTool and override Mouse Events

Thread ID:

Created:

Updated:

Platform:

Replies:

31413 Jul 7,2005 04:37 AM Aug 11,2009 11:51 PM Windows Forms 3
loading
Tags: Diagram
Stephan Marrocq
Asked On July 7, 2005 04:37 AM

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 09:08 AM

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 10: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.

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 11, 2009 11:51 PM

Hi,

Please visit the below link for KB article.

http://www.syncfusion.com:91/support/kb/diagram/Default.aspx?ToDo=view&questId=48

Regards,
Gowri

CONFIRMATION

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.

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.

;