📄 about.pas
字号:
unit About;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls,inifiles;
type
TAboutBox = class(TForm)
Label1: TLabel;
Label2: TLabel;
Panel1: TPanel;
SpeedButton1: TSpeedButton;
Label3: TLabel;
procedure SpeedButton1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutBox: TAboutBox;
implementation
uses pasMain;
{$R *.DFM}
procedure TAboutBox.SpeedButton1Click(Sender: TObject);
begin
Close;
end;
procedure TAboutBox.FormCreate(Sender: TObject);
var
myinifile:Tinifile;
filename,vs:string;
begin
filename:=application.ExeName ;
filename:=extractfiledir(filename)+'\readme.ini';
myinifile:=Tinifile.Create(filename);
vs:=myinifile.Readstring('所属单位','单位名称','');
label1.caption:=vs+label1.caption;
frmmain.caption:=vs+frmmain.caption;
vs:=myinifile.Readstring('所属单位','英文名称','');
label3.caption:=vs;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -