AnnLock method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnLock (LEADTyp::L_HANDLE hObject, AnsiString szKey, bool fSelected);

Delphi Syntax

Function AnnLock(hObject: L_HANDLE; szKey: string; fSelected: Boolean): integer;

Overview

Refer to Implementing Annotation Security

Remarks

(Document/Medical only) Locks annotations with the specified key. Annotations cannot be modified through the automated mode unless they are unlocked with the same key either using AnnUnlock method, or through the automated mode unlock menu item. The key is case sensitive! If the AnnShowLockedIcon property is True, the locked objects are drawn with a padlock icon on top of them. If a redact object is locked, AnnUnrealize method will fail on that object.

There is one property associated with this method. The AnnShowLockedIcon property determines how locked objects are drawn.

See Also

Elements:

AnnUnlock method, AnnUnrealize method, AnnShowLockedIcon property, OnAnnLocked event, AnnRealize method, OnAnnUnlocked event

Topics:

Annotations (Document/Medical only): Annotation Security