OnAnnCreate event (Annotation Control)
Builder Syntax |
TAnnCreateEvent OnAnnCreate (LEADTyp::L_HANDLE hObject) |
Delphi Syntax |
OnAnnCreate (hObject: L_HANDLE): TAnnCreateEvent |
Overview |
Refer to Implementing Annotations. |
Remarks
(Document/Medical only) Occurs whenever an annotation object is added by any means, including loading from a file, pasting from the clipboard, or drawing with an annotation tool selection.
The object handle that this event receives can be used to immediately identify the object, but it should not be used as a unique identifier over time. (The annotation undo feature can cause object handles to change.) Therefore, to keep track of particular objects such as buttons or hot spots over time, use the AnnSetTag method and the AnnGetTag method.
When a file is loaded, an OnAnnCreate event is generated for each annotation object. Add code to this event to see which tags are already used in a file.
See Also
Topics |
|
|