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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiselect - rotation

Thread ID:

Created:

Updated:

Platform:

Replies:

61423 May 25,2007 11:54 AM UTC May 29,2007 08:32 AM UTC WinForms 2
loading
Tags: Diagram
Daniel Preisler Larsen
Asked On May 25, 2007 11:54 AM UTC

Hi There

I have disabled the rotation and resizing facilities on the Node objects in my diagram by setting the HandleEditMode of each node to None. This has exactly the effect I need. So far so good.

The problem is that if I hold down the left mouse button and select multiple nodes, I am able to resize and rotate them. How do I disable that, while preserving the possibility to mulitiselect nodes and move them about as a group?

Kind regards

Daniel

Meera Fathima [Syncfusion]
Replied On May 25, 2007 01:53 PM UTC


Hello Daniel,

If your intension is not to rotate the nodes, you can do this by raising the Diagram.Model.EventSink.RotationChanging event and cancelling the operation. Below is the sample code snippet for your reference.

this.diagram1.Model.EventSink.RotationChanging += new RotationChangingEventHandler(EventSink_RotationChanging);

void EventSink_RotationChanging(RotationChangingEventArgs evtArgs)
{
evtArgs.Cancel = true;
}

Please let me know whether this is helpful to you.

Thanks,
Meera.

Daniel Preisler Larsen
Replied On May 29, 2007 08:32 AM UTC

Hi there

It was very helpful. Thank you.

Regards Daniel

>
Hello Daniel,

If your intension is not to rotate the nodes, you can do this by raising the Diagram.Model.EventSink.RotationChanging event and cancelling the operation. Below is the sample code snippet for your reference.

this.diagram1.Model.EventSink.RotationChanging += new RotationChangingEventHandler(EventSink_RotationChanging);

void EventSink_RotationChanging(RotationChangingEventArgs evtArgs)
{
evtArgs.Cancel = true;
}

Please let me know whether this is helpful to you.

Thanks,
Meera.

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

;