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

How to keep an Active tool ''active'' ?

Hi,
Is there a way to keep the selected drawing tool working? When you draw a rectangle on a diagram, after releasing the mouse button, you have to select the rectangle tool again to draw another rectangle.
I have tried to select that tool again in the NodeCollectionChanged event, but this is probably not enough.
Can anyone help me?
Thanks.

PS: I use VS2005, Syncfusion 5.25.

1 Reply

J. J.Nagarajan Syncfusion Team October 16, 2007 01:46 AM UTC

Hi Stefan ,

Thanks for your interest in Syncfusion product.

If your intention is to activate the preceeding tool cursor then it can be done using the code snippet below,

[C#]

Tool tool = this.diagram1.Controller.GetTool("RectangleTool");
tool.SingleActionTool = false;
this.diagram1.Controller.RegisterTool(tool);
this.diagram1.Controller.ActivateTool(tool);


Please let me know if this helps.

Regards,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon