-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormHoax.pas
58 lines (48 loc) · 994 Bytes
/
FormHoax.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
unit FormHoax;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, ExtCtrls;
type
TFrmHoax = class(TForm)
Bevel1: TBevel;
Panel1: TPanel;
Image1: TImage;
Label1: TLabel;
Label2: TLabel;
Bevel2: TBevel;
Panel2: TPanel;
RichEdit1: TRichEdit;
ProgressBar1: TProgressBar;
Timer1: TTimer;
Button2: TButton;
procedure Timer1Timer(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmHoax: TFrmHoax;
implementation
uses AprilFoolsTrial;
{$R *.dfm}
procedure TFrmHoax.Timer1Timer(Sender: TObject);
begin
if ProgressBar1.Position = 100 then
begin
Timer1.Enabled := False;
if not IsError then
Button2.Visible := True
else
Close;
exit;
end;
ProgressBar1.Position := ProgressBar1.Position + 5;
end;
procedure TFrmHoax.Button2Click(Sender: TObject);
begin
Close;
end;
end.