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

DirectedLinkTool and symbol rotation

Thread ID:





25810 Mar 8,2005 10:22 AM UTC Mar 1,2006 10:25 AM UTC WinForms 5
Tags: Diagram
Tommy Norman
Asked On March 8, 2005 10:22 AM UTC

Hello, When I create a link between two symbols with the DirectedLinkTool the tool deactivates it self as soon as the link is completed. I would like to keep the tool active till I press the select tool, how can acomplish this? When I rotate a symbol with the rotation tool I need to get out the number of degrees the symbol rotated. The RotateEventArgs in the diagram_NodeRotated event handler doesn''t seem to provide such information. How can I get hold of this information? Best Regards Tommy

Administrator [Syncfusion]
Replied On March 9, 2005 11:30 PM UTC

Hi Tommy, The LinkTool class that the DirectedLinkTool uses is forcibly deactivated in response to the MouseUp event from within it''s MouseUpEventHandler. The only way you can avoid this behavior is by implementing a custom LinkTool class, that derives from the Syncfusion.Windows.Forms.Diagram.Tool base and implements all of the functionality available in the LinkTool class, but retains the tool activation state even after the MouseUp event. Referring to the ''LinkTool.IMouseEventReceiver.MouseUp(System.Windows.Forms.MouseEventArgs e)'' method in the ''Diagram.Base\Src\Tools\LinkTool.cs'' file will give you the necessary hints for implementing your custom LinkTool. Regards, Prakash Surendra Syncfusion Inc.,

Administrator [Syncfusion]
Replied On March 9, 2005 11:42 PM UTC

Tommy, As for determining the angle through which a symbol is rotated, I am afraid there does not seem to be any way to access this value from the Diagram.NodeRotated event. I have logged this as a QA report, and we will update the NodeRotated event argument to provide the angle of rotation as well in a future update of Essential Diagram. For the time being, a workaround would be to either replace the RotateTool with a subclassed version of the Tool that notifies you of the rotation, or to override the Diagram.Controller.ExecuteCommand(ICommand cmd) method and examine whether the invoked ICommand object is of type ''Syncfusion.Windows.Forms.Diagram.RotateCmd'' and if so retrieve it''s RotateCmd.Degrees property. Thanks, Prakash

Tommy Norman
Replied On March 10, 2005 09:08 AM UTC

Thanks Prakash, This will for sure help me alot. When can I expect the new release announced for sometime now? Best Regards Tommy

Administrator [Syncfusion]
Replied On March 11, 2005 03:44 PM UTC

Hi Tommy, We are currently working on weeding out some install/licensing related issues in the new Essential Suite image. Due to the nature of the problem, I am at a loss to predict a timeframe by which these issues will be sorted. But please be assured that we are working as hard as possible on this, and hope to get the new image out within the next few days. My apologies for the inconvenience. Regards, Prakash Syncfusion Inc.,

Richard Deverson
Replied On March 1, 2006 10:25 AM UTC

I am revisiting this issue with Essential Studio It seems that the RotateEventArgs parameter of the Diagram.NodeRotated event still does not contain the rotation angle. Prakash mentioned that this would be fixed in a "future" version. Or am I looking in the wrong place?


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon