DisableMenuItems()

Summary

Disables several menu items at once.

Syntax

DisableMenuItems(array item_list)

Argument Contents
item_list An array of strings indicating the names of menu items to disable

Notes

  • All menu items to disable must be part of the current menu system.

  • If one or more menu items does not exist, DisableMenuItems() does not signal an error.

Example

// Here's an array of menu items that apply to maps...
lst = {"Close Map", "Print Map", "Zoom In", "Zoom Out"}
if number_of_maps = 0 then
DisableMenuItems(lst)
else
EnableMenuItems(lst)

See Also

Function Summary
EnableMenuItems() Enables several menu items at once
RemoveMenuItem() Removes a menu item from the currently active menu system
DisableItem() Disables a dialog box item or menu item
EnableItem() Enables a dialog box item or menu item