Maptitude GISDK Help

AddMenuItem()

Summary

Adds a menu item to a menu in the currently active menu system.

 

Syntax

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

 

Notes

Example

AddMenuItem("My Extra Menu", "Before", "Window")

 

Error Codes

Error Type

Meaning

NotFound

Either the new_item or the old_item does not exist in the current menu system

 

See Also

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