This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, November 22, 2013 7:35:30 AM(UTC)
Groups: Registered
Posts: 37
Hi,
I was wondering how to lock all of the annotations present on an image.
I have disabled the right click menu that usually allows the user to lock/unlock all annotations,
I needed to display something other than the Leadtools menu.
Is the only way I can lock all annotations at once is by creating my own password dialog and than manually
looping through all annotations present and locking them since the right click menu is disabled?
Thanks
Tony
#2
Posted
:
Saturday, November 23, 2013 11:28:57 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Tony,
The details depend on the programming interface (C DLL, .NET classes, etc.) that you use. For example, if you are using LEADTOOLS v17.5 .NET classes, you need to loop through all annotations objects and call the AnnObject.Lock() method for each object as follows:
+-------------+
private AnnAutomation _annAuto
...
foreach (AnnObject obj in _annAuto.Container.Objects)
{
obj.Lock("1234");
}
_viewer.Refresh();
+-------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Tuesday, December 10, 2013 6:41:35 AM(UTC)
Groups: Registered
Posts: 37
Thank you Maen, that's what I thought.
Tony
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.