-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathABOX.PAS
66 lines (53 loc) · 1.17 KB
/
ABOX.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
61
62
63
64
65
unit abox;
interface
uses Windows,StdCtrls,Forms,Controls,ExtCtrls,
Classes,SysUtils, VersInfo;
type
TAboutBox = class(TForm)
ProgramIcon: TImage;
ProgramName: TLabel;
VersionCAP: TLabel;
Copyright: TLabel;
Comments: TLabel;
OkBtn: TButton;
RightsCAP: TLabel;
okvir: TBevel;
panel: TPanel;
VrzCAP: TLabel;
InfoCAP: TLabel;
EMAILED: TEdit;
EMAILCAP: TLabel;
VersionInfo: TVersionInfoResource;
procedure FormCreate(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutBox: TAboutBox;
procedure ShowAboutBox;
implementation
{$R *.DFM}
procedure ShowAboutBox;
begin
with TAboutBox.Create(Application) do
try
ShowModal;
finally
Free;
end;
end;
procedure TAboutBox.FormCreate(Sender: TObject);
begin
Caption := Format('About %s', [Application.Title]);
ProgramIcon.Picture.Assign(Application.Icon);
ProgramName.Caption := Application.Title;
VersionCAP.Caption := 'Build ' + inttostr(VersionInfo.FileVersion.Build);
end;
procedure TAboutBox.FormShow(Sender: TObject);
begin
ActiveControl := OkBtn;
end;
end.