AnnGetAutoMenuItemEnable method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short AnnGetAutoMenuItemEnable(long hObject, short iType, short iItem);

Overview

Refer to Implementing Annotations.

Remarks

Set the AnnAutoMenuItemEnable property to indicate whether the specified menu item is enabled or disabled.

If for the specified object, the menu item’s enable state is ANN_MENU_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 ANN_MENU_DEFAULT, the method determines whether the enable state has been set for ANN_OBJECT_ALL. If this is also ANN_MENU_DEFAULT, the method determines whether the menu item text is NULL or not NULL. If it is NULL, the method Returns ANN_MENU_DISABLE. If the menu item is not NULL, the method returns ANN_MENU_ENABLE.

Read the AnnAutoMenuItemEnable property after calling this method to get the value that indicates whether the specified menu item is enabled or disabled.

See Also

Elements

AnnAutoSnapCursor property, AnnSetAutoMenuItemEnable, AnnAutoMenuEnable property, AnnAutoMenuItemEnable property, AnnAutoHilightPen property

Topics

Annotations (Document/Medicalonly): Automation