HideItem()

Summary

Hides an item in a dialog box.

Syntax

HideItem(string item_name)

Argument Contents
item_name The name of the dialog box item to hide

Notes

  • The item to be hidden must be in the current dialog box.

  • HideItem() can be called in the Init macro of a dialog box.

Example

if file_type = "Text" then do
HideItem("binary file name")
ShowItem("text file name")
end
else do
ShowItem("binary file name")
HideItem("text file name")
end

Error Codes

Error Type Meaning
NotFound The item does not exist or is not part of the current dialog box

See Also

Function Summary
ShowItem() Shows a previously hidden dialog box item
DisableItem() Disables a dialog box item or menu item
EnableItem() Enables a dialog box item or menu item
SetItem() Moves the keyboard focus to a dialog box item