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.

Change Node Drag/Drop sensitivity

Thread ID:

Created:

Updated:

Platform:

Replies:

17835 Aug 18,2004 01:41 AM Aug 19,2004 02:39 PM Windows Forms 1
loading
Tags: Diagram
Kai Iske
Asked On August 18, 2004 01:41 AM

Hi, I''d like to change the sensitivity for initiating a diagram node drag/drop operation. Often it happens that when you double-click on a node on the diagram, the diagram attempts to initiate a drag/drop operation actually moving the node. Any help would be highly appreciated. TIA Kai Iske

Administrator [Syncfusion]
Replied On August 19, 2004 02:39 PM

Hi Kai You need to implement your own MoveTool. Refer to the Tools/MoveTool.cs file in the Essential Diagram Source. Refer to the node tracking code in the IMouseEventReceiver.MouseMove() in the lines below: // Track the selected nodes as they move: Here you could add code to change the sensitivity as per your requirements. (for eg, tracker.Move will be called only if say (ptDev.X - this.startingPoint.X)>2) Another issue currently is that there is no UnregisterTool method in the Controller, but the Diagram Team is going to add this method which will facilitate unregistering the default Tool and then registering your custom Tool. So currently you will have to use reflection to get hold of the private members of the Controller (mouseEventReceivers in this case). Regards Arun

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.

;