| Maptitude GISDK Help |
Adds a menu item to a menu in the currently active menu system.
AddMenuItem(string new_item, string relative, string old_item)
| Argument | Contents |
|---|---|
| new_item | The name of the added menu item resource |
| relative | The string "Before" or "After" |
| old_item | The name of the menu item resource before or after which the new menu is added |
If new_item is null, AddMenuItem() adds a menu separator.
Menu item resources can be defined outside of menu resources, if necessary.
AddMenuItem("My Extra Menu", "Before", "Window")
| Error Type | Meaning |
|---|---|
| NotFound | Either the new_item or the old_item does not exist in the current menu system |
| Function | Summary |
|---|---|
| RemoveMenuItem() | Removes a menu item from the currently active menu system |
| GetMenu() | Gets the contents of a menu in the currently active menu system |
| ©2025 Caliper Corporation | www.caliper.com |