-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathuActivityFrame.pas
More file actions
46 lines (38 loc) · 838 Bytes
/
uActivityFrame.pas
File metadata and controls
46 lines (38 loc) · 838 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
unit uActivityFrame;
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.Ani, FMX.Objects;
type
TActivityFrame = class(TFrame)
BackgroundRect: TRectangle;
ActivityCircle: TCircle;
ActivityArc: TArc;
ActivityFloatAni: TFloatAnimation;
ClipCircle: TCircle;
private
{ Private declarations }
public
{ Public declarations }
procedure Start;
procedure Stop;
end;
implementation
{$R *.fmx}
procedure TActivityFrame.Start;
begin
Self.Tag := Self.Tag+1;
Self.Visible := True;
ActivityFloatAni.Start;
end;
procedure TActivityFrame.Stop;
begin
Self.Tag := Self.Tag-1;
if Self.Tag=0 then
begin
ActivityFloatAni.Stop;
Self.Visible := False;
end;
end;
end.