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

Notifications (Event) on Shape moving

Thread ID:

Created:

Updated:

Platform:

Replies:

103853 Jun 5,2012 11:54 AM UTC Jun 18,2012 05:28 AM UTC WinForms 5
loading
Tags: Diagram
Foo Bar
Asked On June 5, 2012 11:54 AM UTC

Hi there,

is it possible to get informed if shapes/nodes are moved/has been moved?


Many thanks in advance!

Amsath Ali M [Syncfusion]
Replied On June 6, 2012 04:44 AM UTC

Hi Foo,
Thanks for your interest in Syncfusion products.
We suggest you to use the Diagram.Model.Eventsink’s ‘PinPointChanged’ event to detect whether the node has been moved or not. Please refer the below code snippet to achieve your requirement.
Here is the code:
[C#]
//Occurs when pin point changed
            diagram1.Model.EventSink.PinPointChanged += new PinPointChangedEventHandler(EventSink_PinPointChanged);
void EventSink_PinPointChanged(PinPointChangedEventArgs evtArgs)
        {
            MessageBox.Show(evtArgs.NodeAffected.Name + ": New Location:" + ((Node)evtArgs.NodeAffected).PinPoint.ToString());
        }
Here is the sample:
<a rel='nofollow' href='http://www.syncfusion.com/downloads/Support/DirectTrac/94331/F103853261083735.zip'>F103853241241350.zip</a>
 
Please let us know if you have any queries.
 
Regards,
Amsath Ali. M


F103853_a803fbad.zip

Foo Bar
Replied On June 6, 2012 09:47 AM UTC

Hi Amsath Ali. M,

thanks for your answer. Your example works fine. I unfortunately missed that event.

Now I came across another problem. If I have a shape added to the diagram and I want to resize it, there are situations in which I can resize it's width only to less than what I currently have. It is not possible to enlarge its width (Trying to do so just let the shape preview snap back to its original position after mouse button release). This, however, does not apply to changing its height what just works fine. Playing a little around (moving, resizing both height and width, ...) there come up situations in which I am able to resize its width, but after resizing the situation turns back to the case in which it is not possible.

All said can be verified with the example provided by you.

What does lead to such situations? Am I doing something wrong?


Best regards,
Ralf

Amsath Ali M [Syncfusion]
Replied On June 11, 2012 06:55 AM UTC

Hi Foo,
Thanks for the update.
Could you please confirm that whether you are facing the issue shown in the below video or not? If not, please provide more information probably a video which shows the reported issue, this will help us to reproduce the issue effectively at our end and to provide a better solution to you?
 
 
Please let us know if you have any queries.
Regards,
Amsath Ali. M


video_d89825b5.zip

Foo Bar
Replied On June 14, 2012 02:08 PM UTC

Hi Amsath Ali. M,

the effect shown in the video is exactly what I tried to describe.


Best regards,

Ralf

Amsath Ali M [Syncfusion]
Replied On June 18, 2012 05:28 AM UTC

Hi Ralf,

 

Thanks for the update.

 

The issue "Resizing of node is not working properly" reported by you has been Suspected to be a defect. Please create a DT incident for your query so that we can update the patch for this issue.

You can create the DT incident from the following link.
http://www.syncfusion.com/account/dashboard

In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.

Please let us know if you have any queries.

 

Regards,

Amsath Ali. M


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

;