AddItem method (ILEADRasterAnnMenu)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short AddItem(BSTR pszString, short iType, long nID, short iIndexBefore);

Overview

Refer to Annotation Menu

Remarks

Adds a menu item with the specified string, type and id, before the item specified in iIndexBefore.

When the user selects an item added using this method, the OnAnnUserMenu event will be fired. The nID value passed to the OnAnnUserMenu event is the same nID passed to this method.

This method is associated with an ILEADRasterAnnMenu object. The ILEADRasterAnnMenu object can be created from the AnnMenu handle that is passed to the OnAnnMenu event.

See Also

Elements:

Count property, ItemString property, ItemType property, ItemID property, ItemEnabled property, ItemChecked property, DeleteItem method, GetSubMenu Method

Topics:

Annotations (Document/Medical only): Automation