Maptitude GISDK Help |
Gets the contents of a menu in the currently active menu system.
contents = GetMenu(string menu_name)
Argument |
Contents |
menu_name |
The name of the menu whose contents are returned |
An array containing the resource name of each menu item in the menu. Separators are represented by null.
Menu "My Extra Menu"
MenuItem "My Extra 1" text: "Extra 1" ...
MenuItem "My Extra 2" text: "Extra 2" ...
EndMenu
Macro "Get"
m = GetMenu("My Extra Menu")
// m now contains {" My Extra 1", "My Extra 2"}
...
endMacro
The menu must be a submenu of the currently active menu system.
Error Type |
Meaning |
NotFound |
The specified menu does not appear in the current menu system |
Function |
Summary |
Adds a menu item to a menu in the currently active menu system |
|
Removes a menu item from the currently active menu system |
©2025 Caliper Corporation | www.caliper.com |