-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdecompressor_About.pas
60 lines (48 loc) · 1.88 KB
/
decompressor_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
{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~ ~~~~~~~~~~
~~~~~~~~~~ Cobian Backup Black Moon ~~~~~~~~~~
~~~~~~~~~~ Copyright 2000-2006 by Luis Cobian ~~~~~~~~~~
~~~~~~~~~~ cobian@educ.umu.se ~~~~~~~~~~
~~~~~~~~~~ All rights reserved ~~~~~~~~~~
~~~~~~~~~~ ~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// About box for the decompressor
unit decompressor_About;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, TntForms, StdCtrls, TntStdCtrls;
type
Tform_About = class(TTntForm)
l_Tool: TTntLabel;
l_Name: TTntLabel;
l_Version: TTntLabel;
l_Copyright: TTntLabel;
l_Rights: TTntLabel;
l_Web: TTntLabel;
procedure FormShow(Sender: TObject);
private
{ Private declarations }
procedure CenterLabels();
public
{ Public declarations }
protected
end;
implementation
{$R *.dfm}
procedure Tform_About.CenterLabels();
begin
l_Tool.Left:= (Width div 2) - (l_Tool.Width div 2);
l_Name.Left:= (Width div 2) - (l_Name.Width div 2);
l_Version.Left:= (Width div 2) - (l_Version.Width div 2);
l_Copyright.Left:= (Width div 2) - (l_Copyright.Width div 2);
l_Rights.Left:= (Width div 2) - (l_Rights.Width div 2);
l_Web.Left:= (Width div 2) - (l_Web.Width div 2);
end;
procedure Tform_About.FormShow(Sender: TObject);
begin
CenterLabels();
end;
end.