dialog.runFromFile

Syntax dialog.runFromFile (path, defaultItem, itemHitCallback)

Params path is the full path to a file that contains a DLOG resource with ID = 25000, and a DITL resource with the same ID.

defaultItem is the item number of the item that is displayed in bold, and is selected when the user presses the Return or Enter key.

itemHitCallback is the address of a script to be executed when an item in the dialog is hit and the user's action must be processed.

Action Calls dialog.loadFromFile to load the dialog from a file, then dialog.run to run the dialog.

Returns The value returned by dialog.run.

Examples dialog.runFromFile ("System:Fun Dialog", 1, @itemHitCallback)

   » true

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

Notes See the documentation for dialog.run and dialog.loadFromFile for full information.

Use this verb when a dialog appears only once in a script. Use dialog.loadFromFile if it may appear several times.

dialog.runFromFile is implemented as a Frontier script, so you can examine the source code to see how it works.

See Also dialog.run

dialog.loadFromFile

Discuss