EnableMenuItems()
Summary
Enables several menu items at once.
Syntax
EnableMenuItems(array item_list)
| Argument | Contents |
|---|---|
| item_list | An array of strings indicating the names of menu items to enable |
Notes
-
All menu items to enable must be part of the current menu system.
-
If one or more menu items does not exist, EnableMenuItems() 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 |
|---|---|
| DisableMenuItems() | Disables several menu items at once |
| DisableItem() | Disables a dialog box item or menu item |
| EnableItem() | Enables a dialog box item or menu item |