-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathunit2.pas
More file actions
50 lines (37 loc) · 822 Bytes
/
unit2.pas
File metadata and controls
50 lines (37 loc) · 822 Bytes
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
unit Unit2;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm2 }
TForm2 = class(TForm)
Button1: TButton;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form2: TForm2;
implementation
uses
Unit1;
{$R *.lfm}
{ TForm2 }
procedure TForm2.Button1Click(Sender: TObject);
begin
Form2.Visible:=false;
Form1.Visible:=true;
Form1.BringToFront;
Form1.FormStyle:=fsSystemStayOnTop; //FormStyle:=fsNormal;
Form1.WindowState:=wsMaximized;
Form1.Position:=poDesktopCenter;
//Enable back the watcher
Form1.MenuItem10.Caption:='Disable Watcher';
Form1.Timer1.Interval:=600000;
Form1.Timer1.Enabled:=true;
end;
end.