IMenu
What it does
A collection of IMenuItem objects. Represents a menu or a submenu.
Methods
Definition | Description |
---|---|
AppendItem( commandId : TCommandID, text : string ) : IMenuItem | Appends a menu item with the command identifier commandId and the text Text at the end of the menu. Returns the IMenuItem object of the corresponding element. Any identifiers from the TCommandID enumeration may be used (including CI_SubMenu and CI_Separator), except for CI_Undefined. For CI_Separator, the Text parameter will be ignored. |
Delete( index : int ) | Deletes an element by its index in the collection. |
Find( commandId : TCommandID ) : int | Finds the index of the first object with the specified ID of the command in the collection. |
InsertItem( index : int, commandId : TCommandID, text : string ) : IMenuItem | Inserts a menu item with the command identifier commandId and the text Text in the position Index of the menu. Returns the IMenuItem object of the corresponding element. Any identifiers from the TCommandID enumeration may be used (including CI_SubMenu and CI_Separator), except for CI_Undefined. For CI_Separator, the Text parameter will be ignored. |
4/12/2024 6:16:02 PM