📄 pwformunit.pas
字号:
unit PWFormUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TPWForm = class(TForm)
Edit1: TEdit;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
PWForm: TPWForm;
implementation
uses MainUnit;
{$R *.DFM}
procedure TPWForm.Button1Click(Sender: TObject);
begin
if Edit1.Text= 'cpcw' then
MainForm.Close
else
ShowMessage('请输入正确的密码!');
end;
procedure TPWForm.Button2Click(Sender: TObject);
begin
PWForm.Close;
ShowCurSor(False);
end;
procedure TPWForm.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key= Chr(13) then
if Edit1.Text= 'cpcw' then
MainForm.Close
else
ShowMessage('请输入正确的密码!');
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -