forked from fenisoft/fenixsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfsabout.pas
97 lines (78 loc) · 2.22 KB
/
fsabout.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
(*
fenixsql
author Alessandro Batisti
http://code.google.com/p/fenixsql
http://fblib.altervista.org
file:fsabout.pas
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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. See the
* GNU General Public License for more details.
*)
unit fsabout;
{$mode objfpc}{$H+}
interface
uses
Forms, Controls, ExtCtrls,
StdCtrls, Buttons, ComCtrls, LCLIntf;
type
{ TAboutForm }
TAboutForm = class(TForm)
BitBtn1: TBitBtn;
Image1: TImage;
Label2: TLabel;
Label4: TLabel;
Label6: TLabel;
AuthorLabel: TLabel;
Title2Table: TLabel;
Title1Label: TLabel;
UrlLabel: TLabel;
VersionLabel: TLabel;
mLic: TMemo;
PageControl1: TPageControl;
Panel1: TPanel;
Panel2: TPanel;
Panel3: TPanel;
InfoTabSheet: TTabSheet;
licTabSheet: TTabSheet;
procedure FormCreate(Sender: TObject);
procedure UrlLabelClick(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
procedure ShowAbout(AAppVersion, AAuthor, AUrl: string);
implementation
{$R *.lfm}
procedure ShowAbout(AAppVersion, AAuthor, AUrl: string);
var
AboutForm: TAboutForm;
begin
AboutForm := TAboutForm.Create(nil);
try
AboutForm.VersionLabel.Caption := AAppVersion;
AboutForm.AuthorLabel.Caption := AAuthor;
AboutForm.UrlLabel.Caption := AUrl;
AboutForm.ShowModal;
finally
AboutForm.Free;
end;
end;
//------------------------------------------------------------------------------
procedure TAboutForm.FormCreate(Sender: TObject);
begin
licTabSheet.Caption := 'License Agreement';
infoTabSheet.Caption := 'Info';
UrlLabel.Cursor := crHandPoint;
end;
procedure TAboutForm.UrlLabelClick(Sender: TObject);
begin
OpenUrl(UrlLabel.Caption);
end;
end.