-
Notifications
You must be signed in to change notification settings - Fork 1
/
AndroidManifest.template.xml
69 lines (44 loc) · 1.63 KB
/
AndroidManifest.template.xml
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
63
64
65
66
67
68
69
unit Unit1;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls;
type
TForm1 = class(TForm)
Panel1: TPanel;
ImageControl3: TImageControl;
ImageControl2: TImageControl;
ImageControl1: TImageControl;
Label1: TLabel;
Button2: TButton;
Button1: TButton;
Button3: TButton;
procedure Button2Click(Sender: TObject);
private
Fform2:TForm2;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.fmx}
uses Unit2;
procedure TForm1.ShowForm(AObject: TFmxObject);
var
i:integer;
begin
for i:=0 to Pred(Self.Panel1.children.count)do
TControl(Self.Panel1.Children[i]).Visible:=TControl(Self.Panel1.Children[i])=TControl(AObject);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Form2.showmodal;
if not assigned(Fform2) then
Fform2:=TForm2.Create(self);
Panel1.AddObject(Fform2.Panel2);
ShowForm(Fform2.Panel2);
end;
end.