-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathabout.pas
61 lines (44 loc) · 1021 Bytes
/
about.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
unit about;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, fileinfo, LCLIntf;
type
{ TFormAbout }
TFormAbout = class(TForm)
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
LabelVersion: TLabel;
procedure Button1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure Label5Click(Sender: TObject);
private
public
end;
var
FormAbout: TFormAbout;
implementation
{$R *.lfm}
{ TFormAbout }
procedure TFormAbout.Button1Click(Sender: TObject);
begin
Close
end;
procedure TFormAbout.FormShow(Sender: TObject);
var
FileVerInfo: TFileVersionInfo;
begin
FileVerInfo:=TFileVersionInfo.Create(nil);
FileVerInfo.ReadFileInfo;
LabelVersion.Caption := FileVerInfo.VersionStrings.Values['FileVersion'];
end;
procedure TFormAbout.Label5Click(Sender: TObject);
begin
OpenURL('https://xc-basic.net/doku.php');
end;
end.