AnnGetAutoMenuItemEnable method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

intAnnGetAutoMenuItemEnable(LEADTyp::L_HANDLE hObject, int iType, int iItem);

Delphi Syntax

Function AnnGetAutoMenuItemEnable(hObject: L_HANDLE; iType: integer; iItem: integer): Integer;

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Returns a value that indicates whether the specified menu item is enabled or disabled.

If for the specified object, the menu item’s enable state is ANNMENU_DEFAULT, the method determines whether the enable state has been set for objects of the specified type. If the enable state for objects of the specified type is also ANNMENU_DEFAULT, the method determines whether the enable state has been set for ANNOBJECT_ALL. If this is also ANNMENU_DEFAULT, the method determines whether the menu item text is nil or not nil. If it is nil, the method returns ANNMENU_DISABLE. If the menu item is not nil, the method returns ANNMENU_ENABLE.

See Also

Elements:

AnnSetAutoMenuItemEnable method, AnnAutoMenuEnable property

Topics:

Annotations (Document/Medical only): Automation