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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

69060 Oct 11,2007 01:36 PM UTC Oct 16,2007 01:46 AM UTC WinForms 1
loading
Tags: Diagram
sdg
Asked On October 11, 2007 01:36 PM UTC

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.

J.Nagarajan [Syncfusion]
Replied On 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

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.

Warning Icon 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.Close Icon

;