📄 freg.pas
字号:
unit fReg;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, TbShareReg;
type
TfrmReg = class(TForm)
GroupBox1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
edtUserId: TEdit;
edtKeyId: TEdit;
btnReg: TButton;
private
{ Private declarations }
public
{ Public declarations }
function Execute(RegState: TTbRegState; UserId, KeyId: string): Boolean;
end;
var
frmReg: TfrmReg;
implementation
{$R *.dfm}
{ TfrmReg }
function TfrmReg.Execute(RegState: TTbRegState; UserId, KeyId: string): Boolean;
begin
case RegState of
rsNone: Caption:= '请注册';
rsTimeOut: Caption:= '超过了试用期限,请重新注册';
end;
edtUserId.Text:= UserId;
edtKeyId.Text:= KeyId;
Result:= ShowModal=mrOk;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -