RemoveMenuItem()
Summary
Removes a menu item from the currently active menu system.
Syntax
RemoveMenuItem(string menu_item)
| Argument | Contents |
|---|---|
| menu_item | The name of the menu item that is removed |
Notes
-
RemoveMenuItem() removes the menu item from all menus in which it appears.
Example
RemoveMenuItem("My Extra Menu")
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The specified menu item does not appear in the currently active menu system |
See Also
| Function | Summary |
|---|---|
| AddMenuItem() | Adds a menu item to a menu in the currently active menu system |
| DisableMenuItems() | Disables several menu items at once |
| DisableItem() | Disables a dialog box item or menu item |
| GetMenu() | Gets the contents of a menu in the currently active menu system |