-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuPause.pas
More file actions
51 lines (40 loc) · 949 Bytes
/
uPause.pas
File metadata and controls
51 lines (40 loc) · 949 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
50
51
unit uPause;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Objects;
type
TPause = class(TFrame)
Rectangle1: TRectangle;
Rectangle2: TRectangle;
Image1: TImage;
Background: TRectangle;
procedure BackgroundClick(Sender: TObject);
private
FProc : TProc;
public
Procedure ShowIn(aControl : TComponent; aProc : TProc);
Procedure CloseFrame;
end;
Var
Pause : TPause;
implementation
{$R *.fmx}
{ TPause }
procedure TPause.BackgroundClick(Sender: TObject);
begin
CloseFrame;
end;
procedure TPause.CloseFrame;
begin
Parent := Nil;
FProc;
end;
procedure TPause.ShowIn(aControl: TComponent; aProc : TProc);
begin
FProc := aProc;
Parent := aControl As TFMXObject;
Align := TAlignLayout.Contents;
BringToFront;
end;
end.