-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit3.pas
executable file
·48 lines (38 loc) · 936 Bytes
/
Unit3.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
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
Tcountd = class(TForm)
countd_label: TLabel;
procedure countd_labelClick(Sender: TObject);
procedure CreateParams(Var Params: TCreateParams);override;
private
{ Private declarations }
public
{ Public declarations }
end;
var
countd: Tcountd;
implementation
uses Unit1;
{$R *.dfm}
procedure Tcountd.countd_labelClick(Sender: TObject);
begin
Shutdown.EnMax;
Shutdown.Start.AutoStart:=False;
Shutdown.Timer1.Enabled:=False;
Shutdown.Timer2.Enabled:=False;
Shutdown.Most.UserValue:=0;
Hide;
end;
procedure Tcountd.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
with Params do begin
ExStyle := ExStyle or WS_EX_TOPMOST;
WndParent := GetDesktopwindow;
end;
end;
end.