LEADTOOLS Support
Document
Document SDK Questions
Edited object coordinates aren't updated when AnnLineEditDesigner is editing an AnnLineObject
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, August 3, 2009 9:32:23 PM(UTC)
Groups: Registered
Posts: 5
Hi,
I'm using v 16.5 of the LEADTOOLS .NET Leadtools.Annotations assembly.
Following the example in the OnDesignerEdit function, I use designers to create and select annotation objects in Non Automated Annotation program.
My current designer is AnnLineEditDesigner.
I handle the Edit event to retrieve coordinates of my AnnLineObject object like this:
private void OnDesignerEdit(object sender, AnnEditDesignerEventArgs e)
{
if (e.OperationStatus == AnnDesignerOperationStatus.End && e.Operation == AnnEditDesignerOperation.Move)
{
AnnLineObject annLineObject = (AnnLineObject) e.Object;
Console.WriteLine("Start Point : {0} EndPoint : {1}", annLineObject.StartPoint,
annLineObject.EndPoint);
}
}
I expect that the edited object coordinates are updated when the user has clicked and dragged the object itself (e.Operation=AnnEditDesignerOperation.Move) as well as when the user has clicked and dragged a AnnControlPoint (e.Operation=AnnEditDesignerOperation.MoveControlPoint).
When I run it, that worked only if Operation is MoveControlPoint. When Operation is Move the coordinates of the moved object are not updated.
This is very strange behaviour.
I looked carefully at the documentation and didn't find what is missing.
This feels like a bug or at least inconsistency.
Any help would be appreciated.
Thanks
Jacob
#2
Posted
:
Tuesday, August 4, 2009 7:20:48 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Jacob,
The reply in this thread might be what you need:
http://support.leadtools.com/SupportPortal/CS/forums/6889/ShowPost.aspx#6889
If not, please give me more details about the problem.
#3
Posted
:
Tuesday, August 4, 2009 3:13:43 PM(UTC)
Groups: Registered
Posts: 5
Basel,
Thanks. That solved my problem.
LEADTOOLS Support
Document
Document SDK Questions
Edited object coordinates aren't updated when AnnLineEditDesigner is editing an AnnLineObject
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.