dialog.setItemEnable

Syntax dialog.setItemEnable (itemnumber, enabled)

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

enabled is a boolean value

Action Enables or disables a dialog item, depending on the value of enabled.

Returns True

Examples dialog.setItemEnable (1, true) //enable item 1

   » false

dialog.setItemEnable (1, false) //disable item 1

   » false

Platform Notes This verb is only implemented in the Mac OS version of Frontier.

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.hideItem

dialog.showItem

dialog.run

dialog.runModeless

Discuss