-
Notifications
You must be signed in to change notification settings - Fork 12
/
DisplayU.pas
62 lines (50 loc) · 1.21 KB
/
DisplayU.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
unit DisplayU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Buttons,
DSPack, CommonU, StdCtrls;
type
TDisplayF = class(TForm)
Panel1: TPanel;
SpeedButton1: TSpeedButton;
Panel2: TPanel;
Label1: TLabel;
imgDisplay: TImage;
lbServerSt: TLabel;
Label2: TLabel;
lbClientSt: TLabel;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
end;
var
DisplayF: TDisplayF;
implementation
uses
dmMainU, SettingsU;
{$R *.dfm}
procedure TDisplayF.FormClose(Sender: TObject; var Action: TCloseAction);
begin
with dmMain.fgMain do
if Active then begin
Stop;
Active := false;
end;
end;
procedure TDisplayF.FormCreate(Sender: TObject);
begin
Left := 0;
Top := 0;
end;
procedure TDisplayF.SpeedButton1Click(Sender: TObject);
begin
SettingsF.Show;
end;
procedure TDisplayF.FormActivate(Sender: TObject);
begin
if SettingsF = nil then
SettingsF := TSettingsF.Create(Application);
end;
end.