freg.pas

来自「a voice guide client ,it is the second p」· PAS 代码 · 共 45 行

PAS
45
字号
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 + =
减小字号Ctrl + -
显示快捷键?