Password.pas
上传用户:mjqmds
上传日期:2022-05-05
资源大小:2827k
文件大小:1k
- unit Password;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, TFlatButtonUnit, StdCtrls, TFlatEditUnit;
- type
- TPForm = class(TForm)
- Label1: TLabel;
- FlatEdit1: TFlatEdit;
- FlatButton1: TFlatButton;
- procedure FlatButton1Click(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- Password:String;
- { Public declarations }
- end;
- var
- PForm: TPForm;
- implementation
- {$R *.dfm}
- procedure TPForm.FlatButton1Click(Sender: TObject);
- begin
- Password:=FlatEdit1.Text;
- ModalResult:=mrOk;
- end;
- procedure TPForm.FormCreate(Sender: TObject);
- begin
- Password:=FlatEdit1.Text;
- end;
- end.