LEADTOOLS Support
Document
Document SDK Questions
How to restrict the movement of Polygon object?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, January 14, 2009 7:19:29 PM(UTC)
Groups: Registered
Posts: 23
Hi,
I am using Document Leadtool version 14.5.
I have drawn a Polygon having 4 points using annotation tool. I
can edit the Polygon by moving there points, & hence can change
shape. I can also move the Polygon like drag - drop.
Editing of points is fine But what I want is to restrict the movement
of Polygon. Points can move but Polygon should not. Can anybody help me
regarding this.
Very much thankful to you.
Regards,
Manoj Kumar
#2
Posted
:
Thursday, January 15, 2009 9:07:01 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You might be able to detect the annotation change event and prevent or undo moving the object.
Can you tell me which LEADTOOLS programming interface (DLL API, C++ Class Library, .NET , etc.) are you using?
#3
Posted
:
Thursday, January 15, 2009 6:39:56 PM(UTC)
Groups: Registered
Posts: 23
Hi Adnan,
Thanx for your reply.
I am using Delphi interface.
How I can prevent moving the object in annotation change event. Is there any method?
Regards,
Manoj Kumar
#4
Posted
:
Sunday, January 18, 2009 4:55:59 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you use our DLL API annotations function of LEADTOOLS 14.5 with Delphi, you can handle the WM_LTANNEVENT message and detect the ANNCHANGE_MOVE event and see when nState field is set to STATE_BEGIN. At that time, store the object location and when STATE_END arrives, restore the object to its original location.
LEADTOOLS Support
Document
Document SDK Questions
How to restrict the movement of Polygon object?
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.