forked from abc874/ca2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UAbout.pas
66 lines (52 loc) · 1.25 KB
/
UAbout.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
66
unit UAbout;
{$I Information.inc}
// basic review and reformatting: done
interface
uses
// Delphi
System.Classes, System.SysUtils, Vcl.Forms, Vcl.StdCtrls, Vcl.Graphics, Vcl.Controls, Vcl.ExtCtrls,
// Jedi
JvGIF, JvPoweredBy, JvExControls;
type
TAboutBox = class(TForm)
pnlAbout: TPanel;
iProgram_nl: TImage;
lblProductName_nl: TLabel;
lblVersion_nl: TLabel;
lblAuthors: TLabel;
cmdOk: TButton;
JvPoweredByJCL_nl: TJvPoweredByJCL;
JvPoweredByJVCL_nl: TJvPoweredByJVCL;
iIndy_nl: TImage;
lblDSPack_nl: TLabel;
lblCopyright_nl: TLabel;
procedure FormCreate(Sender: TObject);
procedure iProgram_nlDblClick(Sender: TObject);
private
{ private-Deklarationen }
public
{ public-Deklarationen }
end;
var
AboutBox: TAboutBox;
implementation
uses
// CA
Utils;
{$R *.dfm}
procedure TAboutBox.FormCreate(Sender: TObject);
begin
lblVersion_nl.Caption := 'Version ' + Get_File_Version(Application.ExeName);
end;
procedure TAboutBox.iProgram_nlDblClick(Sender: TObject);
var
I: Integer;
begin
if NoYesMsg('raise exception?') then
begin
I := Random(256);
I := I div (I - I);
InfMsg(IntToStr(I));
end;
end;
end.