Prompt

Description:

baPrompt displays a prompt dialog box.

Platforms:

Windows and Macintosh

Usage:

Result = baPrompt( Caption, Instruction, DefaultText, Flags, X, Y )

Arguments:

String, string, string, integer, integer, integer.
Caption is the caption to show in the Title bar.
Instruction is the instruction to display to the user.
DefaultText is the text to display in the edit box.
Flags changes the behaviour of the dialog.
X is the horizontal position of the dialog.
Y is the vertical position of the dialog.

Returns:

String.
Returns the text the user entered, or an empty string if cancelled

Examples:

Director:
pw = baPrompt( "", "Please enter your password:" , "", 2, -1, -1 )

Authorware:
pw := baPrompt( "", "Please enter your password:" , "", 2, -1, -1 )
 

Notes:

Two flags are currently defined:

only allow numbers to be entered

use ***** to mask the user input

The values of the X and Y are relative to the screen. Use -1 to center the dialog on the screen, -2 to center on the Director/Authorware window.
 

See also:

LogIn