dialog.hideItem

Syntax dialog.hideItem (itemnumber)

Params itemnumber is the number of a dialog item in a dialog defined using Macintosh resources.

Action Hides the dialog item indicated by itemnumber.

Returns True

Examples dialog.hideItem (1)

   » true

Errors If itemnumber is out of range for the dialog, an error results.

If you call this verb from a script that is not an itemhit handler (see "Notes," below, for details), an error results.

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

This verb only works if there's a dialog box displayed. Thus it is valid only when called from a script that is an itemhit handler, whose address was passed to dialog.run or dialog.runModeless.

See Also dialog.run

dialog.runModeless

dialog.showItem

Discuss