Maptitude GISDK Help

Menus

 

A menu resource is used to define a menu or sub-menu. The format of a menu resource is:

 

{static} Menu "menu name" {options}

     <menu items go here>

endMenu

 

If you declare a menu static it can only be called from resources within the same resource file in which the menu is defined.

 

The only option defined for a menu is the Windows option:

 

Option

Description

Windows

The menu has the names of all open windows appended to it. Only one menu in a menu system may have this option.

 

The menu items listed in a menu definition can be actual menu item definitions, the names of menu items defined previously in the file, or the keyword Separator indicating a horizontal line through the menu separating groups of menu items. For example:

 

Menu "file menu"

     MenuItem "Open..." macro "Open File" // defined elsewhere

     Separator

     MenuItem "Exit" do Exit() endItem

endMenu

 

Separators should not be used in a top-level menu.

 

Menus can have an Init item that is executed after the user chooses the menu and before the menu is displayed. It can be used for enabling or disabling items, setting checkmarks on items, or even adding and removing items. The format of an Init item definition is:

 

Init do

     <statements go here>

     endItem

 

For more information, see...

Menu Items

Keyboard Combinations for Menu Items

Functions for Menu Items

 

 

©2025 Caliper Corporation www.caliper.com