Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, November 20, 2020 7:47:42 AM(UTC)
selvakumar

Groups: Registered
Posts: 9


I want to get the current width and height of the annotation each time when the user change the size by using dragging the control points.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, November 20, 2020 9:16:32 AM(UTC)
Matthew Bresson

Groups: Registered, Tech Support, Administrators
Posts: 105

Was thanked: 3 time(s) in 3 post(s)

Hello Selvakumar,

You should be able to use the AfterObjectChanged event inside the AnnAutomation class.
https://www.leadtools.co...nautomation--events.html
This event should be triggered after the given AnnObject has changed.

Another option you can look into are the OnPointer'' methods that are in the AnnDesigner and AnnEditDesigner classes that handle the pointer events.
https://www.leadtools.co...nndesigner--members.html
https://www.leadtools.co...itdesigner--members.html

If you have any questions about the above information please feel free to reach back out to us.

Thanks,
Matt Bresson
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS
 
#3 Posted : Sunday, November 22, 2020 6:52:15 AM(UTC)
selvakumar

Groups: Registered
Posts: 9


Hello Mathew,

Your suggestion sounds helpful. But AfterObjectChanged event will be triggered on moving the object and other changes related to object property right, can we able to filter out only while resize?
I have checked in this link "https://www.leadtools.com/help/sdk/v20/dh/aa/annobjectchangedtype.html", I don't find any enum value specific to annotation resize. Any other solution for this?

Thanks for your support in advance.
 
#4 Posted : Sunday, November 22, 2020 6:56:29 AM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 218

Was thanked: 12 time(s) in 12 post(s)

You can use the Edit event from the Automation:

https://www.leadtools.co.../annautomation-edit.html

This event has an Operation property in the EventArgs that lets you filter out specific events that you are wanting:

https://www.leadtools.co...itdesigneroperation.html

You will want to filter on the MoveThumb operation to get resize's
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.

LEAD Logo
 
#5 Posted : Sunday, November 22, 2020 9:40:27 AM(UTC)
selvakumar

Groups: Registered
Posts: 9


Thanks Hadi, I think this would help. Thank you so much.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.070 seconds.