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 22, 2013 7:35:30 AM(UTC)
tbecker82

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
 

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 : Saturday, November 23, 2013 11:28:57 PM(UTC)
Maen Hasan

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)
tbecker82

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.

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