AnnSetAutoText method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetAutoText(int iItem, char * pszText);

Delphi Syntax

Function AnnSetAutoText(iItem: Integer; pszText: PChar): Integer;

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the character string that is used for the specified menu item or other element that LEADTOOLS provides for automated annotations.

To get the current value of a text string, use the AnnGetAutoText method.

When this method is called with an empty string for pszText, the menu item defined by iItem will be disabled and removed from the automation menu. To re-enable the menu item, call this method again and pass a valid string.

See Also

Elements:

AnnGetAutoText method

Topics:

Annotations (Document/Medical only): Automation