AnnSetAutoMenuItemEnable method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetAutoMenuItemEnable(LEADTyp::L_HANDLE hObject, int iType, int iItem, int iEnable, int iFlags, char * pszUserList);

Delphi Syntax

Function AnnSetAutoMenuItemEnable(hObject: L_HANDLE; iType: Integer; iItem: Integer; iEnable: Integer; iFlags: Integer; pszUserList: PChar): Integer;

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Enables or disables a menu item for one or more annotation objects.

By default, all automation menu items that are not nil are displayed.

If an automation menu item is nil, that menu item will not be displayed, even if the menu item has been enabled using this method.

The menu item strings are changed using the AnnSetAutoText method.

Menu items can be enabled or disabled for one or more than one object, depending on the object passed in the hObject parameter. The following table indicates the possible options:

Menu Item String

Status

hObject

Itype

Result

Nil

Enabled

Annotation or automation

Any type

Menu item is not displayed.

Nil

Disabled

Annotation or automation

Any type

Menu item is not displayed.

Not Nil

Disabled

Automation object

ANNOBJECT_XXX

Menu item is not displayed for all objects of type ANNOBJECT_XXX.

Not Nil

Disabled

Automation object

ANNOBJECT_ALL

Menu item is not displayed for all objects.

Not Nil

Enabled

Automation object

ANNOBJECT_XXX

Menu item is displayed for all objects of type ANNOBJECT_XXX.

Not Nil

Enabled

Automation object

ANNOBJECT_ALL

Menu item is displayed for all objects.

Not Nil

Disabled

Annotation object

Ignored

Menu item is not displayed for the specified object, based on the value of iFlags.

Not Nil

Enabled

Annotation object

Ignored

Menu item is displayed for the specified object, based on the value of iFlags.

See Also

Elements:

AnnGetAutoMenuItemEnable method, AnnAutoMenuEnable property

Topics:

Annotations (Document/Medical only): Automation