📄 about.pas
字号:
unit About;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TFrmAbout = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Memo1: TMemo;
Button1: TButton;
LAppName1: TLabel;
LAppName2: TLabel;
LVer1: TLabel;
LVer2: TLabel;
LAuthor2: TLabel;
LAuthor1: TLabel;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmAbout: TFrmAbout;
implementation
uses global;
{$R *.dfm}
procedure TFrmAbout.FormCreate(Sender: TObject);
begin
self.Caption :=SFormAbout;
LAppName1.Caption :=SAppName;
LAppName2.Caption :=SAppName;
//使用COPY函数来去掉原设置变量中的第一个字母 V
LVer1.Caption :=copy(SAPPVersion,2,Length(SAPPVersion));
LVer2.Caption :=LVer1.Caption;
LAuthor1.Caption :=SAppAuthor;
LAuthor2.Caption :=SAppAuthor;
end;
procedure TFrmAbout.Button1Click(Sender: TObject);
begin
close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -