about.pas

来自「小型库存管理,希望有帮助,小型库存管理,希望有帮助」· PAS 代码 · 共 54 行

PAS
54
字号
unit about;

interface

uses Windows, Classes, Graphics, Forms, Controls, StdCtrls,
  Buttons, ExtCtrls,MsgU;

type
  TAboutBox = class(TForm)
    Panel1: TPanel;
    OKButton: TButton;
    ProgramIcon: TImage;
    ProductName: TLabel;
    Version: TLabel;
    Copyright: TLabel;
    regInfo: TLabel;
    Label1: TLabel;
    procedure OKButtonClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  AboutBox: TAboutBox; 

implementation

{$R *.dfm}

procedure TAboutBox.OKButtonClick(Sender: TObject);
begin
  close ; 
end;

procedure TAboutBox.FormShow(Sender: TObject);
var
  strCount :string  ;
begin
  strCount :=GetCount;
  if strCount<>'999' then
   begin
    regInfo.Visible :=true ;
    regInfo.Caption :='您还可以试用:'+strCount+'次.';
   end
  else
    regInfo.Visible :=false ; 
end;

end.
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?