| Maptitude GISDK Help |
Enables a dialog box item or menu item.
EnableItem(string item_name)
| Argument | Contents |
|---|---|
| item_name | The name of the dialog box item or menu item to enable |
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.
if number_of_maps = 0 then
DisableItem("Close Map menu item")
else
EnableItem("Close Map menu item")
| Error Type | Meaning |
|---|---|
| NotFound | The specified item does not exist or is not part of the current dialog box or menu system. |
| 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 |
| ©2025 Caliper Corporation | www.caliper.com |