[Overview][Resource strings][Classes][Procedures and functions][Index] | Reference for unit 'DBLogDlg' (#lcl)

# TLoginDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a database login dialog form.

## Declaration

Source position: dblogdlg.pas line 14

`type TLoginDialog = class(TForm)`
`protected`
`lDatabaseName: TLabel;` |  | Label used to display the Database Name for the dialog form.
`lDatabase: TLabel;` |  | Label for the Database Name field.
`lUserName: TLabel;` |  | Label for the User Name field.
`lPassword: TLabel;` |  | Label for the Password field.
`eUserName: TEdit;` |  | Edit control used to enter the User Name.
`ePassword: TEdit;` |  | Edit control used to enter the Password.
`BtnPanel: TButtonPanel;` |  | Button Panel for the OK and Cancel buttons on the dialog.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`end;`

## Inheritance

`TLoginDialog` |  | Implements a database login dialog form.
`TForm` |  | Implements a form used in an LCL application.
`TCustomForm` |  | The base type for TForm classes.
`TCustomDesignControl` |  | Provides a designer surface for scaling and layout of its child controls.
`TScrollingWinControl` |  | Implements a windowed control with scroll bars.
`TCustomControl` |  | The base class for windowed controls which paint themselves.
`TWinControl` |  | Implements a windowed control which can contain other child controls.
`TControl` |  | The base class for visible controls.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TLoginDialog is a TForm descendant which implements a database login form. TLoginDialog contains labels and edits used to display and/or edit Database Name, User Name, and Password values. Database Name is read-only and cannot be changed on the form. The User Name can optionally be read-only. It also has a button panel with Login and Cancel buttons.

Use LoginDialogEx to create, configure, and display an instance of TLoginDialog using the arguments passed to the routine.

## See also

LoginDialogEx |  | Creates, configures, and displays a TLoginDialog dialog form.