EnableItem()
Summary
Enables a dialog box item or menu item.
Syntax
EnableItem(string item_name)
| Argument | Contents |
|---|---|
| item_name | The name of the dialog box item or menu item to enable |
Notes
-
When called with a dialog box item, the item must be in the current dialog box.
-
When called with a menu item, the item must be in the current menu system.
-
EnableItem() can be called in the Init macro of a dialog box to enable an item in the dialog box.
Example
if number_of_maps = 0 then
DisableItem("Close Map menu item")
else
EnableItem("Close Map menu item")
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The specified item does not exist or is not part of the current dialog box or menu system. |
See Also
| Function | Summary |
|---|---|
| HideItem() | Hides an item in a dialog box |
| ShowItem() | Shows a previously hidden dialog box item |
| DisableItem() | Disables a dialog box item or menu item |