LogIn

Description:

baLogIn displays a log in dialog box.

Platforms:

Windows and Macintosh

Usage:

Result = baLogIn( Caption, Instruction, UserName, Password, Flags, NameCaption, PasswordCaption, X, Y )

Arguments:

String, string, string, string, integer, string, string, integer, integer.
Caption is the caption to show in the Title bar.
Instruction is the instruction to display to the user.
UserName is the text to display in the user name edit box.
Password is the text to display in the password edit box.
Flags changes the behaviour of the dialog.
NameCaption is the text to display beside the user name edit box.
PasswordCaption is the text to display beside the password edit box.
X is the horizontal position of the dialog.
Y is the vertical position of the dialog.

Returns:

List.
Returns a property list. See Notes for details.

Examples:

Director:
log = baLogIn( "", "Please log in:" , "", "", 2, "User:", "Password:", -1, -1 ))

Authorware:
log := baLogIn( "", "Please log in:" , "", "", 2, "User:", "Password:", -1, -1 ))
 

Notes:

The return will be a property list with 3 entries - #Name, #Password and #Ok. For example;

[#Name: "Fred", #Password: "casper", #Ok: 1]

If the user cancels, then #Ok will be equal to 0.

[#Name: "", #Password: "", #Ok: 0]

Five flags are currently defined:

only allow numbers to be entered

use ***** to mask the password input

Don't allow spaces to be entered

Do not allow blank user name

16 

Do not allow blank password

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:

baPrompt