-
Notifications
You must be signed in to change notification settings - Fork 44
/
UnitAbout.pas
108 lines (89 loc) · 3 KB
/
UnitAbout.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
98
99
100
101
102
103
104
105
106
107
108
unit UnitAbout;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, AdvSmoothPanel, AdvSmoothLabel, jpeg, ExtCtrls, WallPaper, StdCtrls,
AdvReflectionLabel, pngimage, sLabel;
type
TFormAbout = class(TForm)
Timer1: TTimer;
Image1: TImage;
Label1: TsWebLabel;
procedure FormCreate(Sender: TObject);
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure AdvSmoothPanel1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure Timer1Timer(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Label1MouseEnter(Sender: TObject);
procedure Label1MouseLeave(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormAbout: TFormAbout;
implementation
{$R *.dfm}
uses
UnitCryptString,
UnitConstantes,
Registry,
ShellApi,
Base64;
procedure TFormAbout.AdvSmoothPanel1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = vk_escape then close;
end;
procedure TFormAbout.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Timer1.Enabled := False;
end;
procedure TFormAbout.FormCreate(Sender: TObject);
var
i: integer;
begin
Label1.URL := Base64DecodeW('aAB0AHQAcAA6AC8ALwBzAGkAdABlAHMALgBnAG8AbwBnAGwAZQAuAGMAbwBtAC8AcwBpAHQAZQAvAG4AeAB0AHIAZQBtAGUAcgBhAHQALwA=');
DoubleBuffered := True;
Timer1.Enabled := False;
ClientHeight := Image1.Height;
ClientWidth := Image1.Width;
Caption := NomeDoPrograma + ' ' + VersaoDoPrograma;
Label1.Caption := Base64DecodeW(
'QgBlAHQAYQAgAFQAZQBzAHQAZQByADoAIAANAAoALQAgAEgAaQBnAG8AcgAoAGMAYQBiAGU'+
'A5wDjAG8AKQANAAoALQAgAGwAdQBiAHkAZABqAA0ACgANAAoATwBmAGYAaQBjAGkAYQBsAC'+
'AAcABhAGcAZQA6AA0ACgBoAHQAdABwADoALwAvAHMAaQB0AGUAcwAuAGcAbwBvAGcAbABlA'+
'C4AYwBvAG0ALwBzAGkAdABlAC8AbgB4AHQAcgBlAG0AZQByAGEAdAAvAA0ACgANAAoATQBv'+
'AHIAZQAgAGkAbgBmAG8AOgANAAoALQAgAGgAdAB0AHAAOgAvAC8AcwBpAHQAZQBzAC4AZwB'+
'vAG8AZwBsAGUALgBjAG8AbQAvAHMAaQB0AGUALwBuAHgAdAByAGUAbQBlAHIAYQB0AC8ADQ'+
'AKAC0AIABPAHAAZQBuAFMAQwAgAGYAbwByAHUAbQANAAoALQAgAEkAbgBkAGUAdABlAGMAd'+
'ABhAGIAbABlAHMAIABmAG8AcgB1AG0ADQAKAA0ACgBDAG8AbgB0AGEAYwB0ADoADQAKAC0A'+
'IABuAGUAdwB4AHQAcgBlAG0AZQByAGEAdABAAGcAbQBhAGkAbAAuAGMAbwBtAA0ACgAtACA'+
'AeAB0AHIAZQBtAGUAcgBhAHQAQABoAG8AdABtAGEAaQBsAC4AYwBvAG0A');
end;
procedure TFormAbout.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = vk_escape then close;
end;
procedure TFormAbout.FormShow(Sender: TObject);
begin
Timer1.Enabled := True;
end;
procedure TFormAbout.Label1MouseEnter(Sender: TObject);
begin
Timer1.Enabled := False;
end;
procedure TFormAbout.Label1MouseLeave(Sender: TObject);
begin
Timer1.Enabled := True;
end;
procedure TFormAbout.Timer1Timer(Sender: TObject);
begin
if Label1.Top >= - Label1.Height then
Label1.Top := Label1.Top - 1 else Label1.Top := (Label1.Top + Height) + Label1.Height;
end;
end.