AddItem method (TAnnMenu)
Builder Syntax |
int AddItem (AnsiString szString, int iType, int nID, int iIndexBefore); |
Delphi Syntax |
Function AddItem (szString: String; iType: Integer; nID: longint; iIndexBefore: integer): integer; |
Overview |
Refer to Annotation Menu |
Remarks
(Document/Medical only) 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 the AnnMenu object that is passed to the OnAnnMenu event.
See Also
Elements |
OnAnnMenu event, Count property, ItemString property, ItemType property, ItemID property, ItemEnabled property, ItemChecked property, DeleteItem method, GetSubMenu Method |
Topics |