AD
Administrator
Syncfusion Team
April 6, 2005 08:11 PM UTC
Hi Tommy,
This is an interesting issue that you have raised. I have logged this as a feature request, and we will try to provide an option on the LinkTool that disables auto activation from the MouseDown event. For the time being, you can workaround the condition by using a custom LinkTool in place of the default tool.
The LinkTool gets activated from it''s IMouseEventReceiver.MouseDown(...) method, when the call to the LinkTool.HitTestLinkPorts(...) method returns a valid Port allowing the subsequent call to Controller.ActivateTool(...). Enclosing this part of the ''If'' block in your custom LinkTool.IMouseEventReceiver.MouseDown(...) method within an enable/disable flag will let you rewire the activation behavior so that only an explicit invocation of the Controller.ActivateTool(...) method from your application will activate the tool.
Regards,
Prakash Surendra
Syncfusion Inc.,