Password Dialog
- Click on Files/New/Other and choose password Dialog
- Click OK
- A new form appears with its unit.
- Save it with File/save_as
Main information
The Password dialog include two buttons and an editBox
- The Edit box is called Password. The passwordChar property defines which character will be displayed while the user type in
- OKbutton and CancelButton close automatically the dialogBox.
- TPasswordDlg.OKBtnClick is the procedure which defines the operation after a click on the OKButton
- TPasswordDlg.CancelBtnClick is the procedure which defines the operation after a click on the CancelButton
Usually, the DialogBox is created when the program starts.
- To make the dialogBox appear we need to call the show procedure : PasswordDlg.show;
- To make the dialogBox modal the procedure is : PasswordDlg.show;