-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutwindow.pas
82 lines (58 loc) · 1.62 KB
/
aboutwindow.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{ Triangolo }
{ Version 1.0 (Agavi) }
{ (c) Johannes W. Dietrich, 2012 - 2020 }
{ (c) Ruhr University of Bochum 2012 - 2020 }
{ Handler for About window }
{ Source code released under the BSD License }
{ See the file "license.txt", included in this distribution, }
{ for details about the copyright. }
{ Current versions and additional information are available from }
{ http://triangolo.sf.net }
{ This program is distributed in the hope that it will be useful, }
{ but WITHOUT ANY WARRANTY; without even the implied warranty of }
{ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. }
unit AboutWindow;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls,
LCLIntf, EnvironmentInfo;
type
{ TAboutForm }
TAboutForm = class(TForm)
TriangoloLogo: TImage;
OKButton: TButton;
CopyrightLabel1: TLabel;
CopyrightLabel2: TLabel;
CopyrightLabel3: TLabel;
CopyrightLabel6: TLabel;
CopyrightLabel7: TLabel;
TriangoloURL: TLabel;
VersionLabel: TLabel;
procedure FormCreate(Sender: TObject);
procedure OKButtonClick(Sender: TObject);
procedure TriangoloURLClick(Sender: TObject);
private
public
end;
var
AboutForm: TAboutForm;
implementation
{$R *.lfm}
{ TAboutForm }
procedure TAboutForm.FormCreate(Sender: TObject);
begin
VersionLabel.Caption := 'Version ' + FileVersion;
{$IFDEF LCLCocoa}
Color := clDefault;
{$ENDIF}
end;
procedure TAboutForm.OKButtonClick(Sender: TObject);
begin
Close;
end;
procedure TAboutForm.TriangoloURLClick(Sender: TObject);
begin
OpenURL('http://triangolo.sourceforge.net')
end;
end.