-
Notifications
You must be signed in to change notification settings - Fork 9
/
MainUnit.pas
134 lines (116 loc) · 3.11 KB
/
MainUnit.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
unit MainUnit;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Objects,
FMX.Effects, FMX.Layouts, FMX.TabControl;
type
TMainForm = class(TForm)
Header: TRectangle;
gplHeader: TGridPanelLayout;
btnBack: TRectangle;
lbBack: TLabel;
ShadowEffect1: TShadowEffect;
HeaderText: TLabel;
btnShare: TRectangle;
imgShare: TImage;
Footer: TRectangle;
gplFooter: TGridPanelLayout;
btnHome: TRectangle;
imgHome: TImage;
btnDiscover: TRectangle;
Image1: TImage;
btnTakePicture: TRectangle;
Image2: TImage;
btnLikes: TRectangle;
Image3: TImage;
btnProfile: TRectangle;
Image4: TImage;
TabControl: TTabControl;
tHome: TTabItem;
tDiscover: TTabItem;
tTakePicture: TTabItem;
tLikes: TTabItem;
tProfile: TTabItem;
VertScrollBox: TVertScrollBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
InfoBox: TRectangle;
GridPanelLayout1: TGridPanelLayout;
GridPanelLayout2: TGridPanelLayout;
GridPanelLayout3: TGridPanelLayout;
GridPanelLayout4: TGridPanelLayout;
Rectangle1: TRectangle;
Label5: TLabel;
Label6: TLabel;
Rectangle2: TRectangle;
Label7: TLabel;
Label8: TLabel;
Rectangle3: TRectangle;
Label9: TLabel;
Label10: TLabel;
Rectangle4: TRectangle;
Label11: TLabel;
ShadowEffect2: TShadowEffect;
BioBox: TRectangle;
rProfilePhoto: TRectangle;
Rectangle6: TRectangle;
Label12: TLabel;
Label13: TLabel;
Rectangle5: TRectangle;
GridPanelLayout5: TGridPanelLayout;
Image5: TImage;
Image6: TImage;
Rectangle7: TRectangle;
Image7: TImage;
Label14: TLabel;
FlowLayout1: TFlowLayout;
Rectangle8: TRectangle;
Image8: TImage;
ShadowEffect3: TShadowEffect;
Rectangle9: TRectangle;
Image9: TImage;
Rectangle10: TRectangle;
Image10: TImage;
Rectangle11: TRectangle;
Image11: TImage;
Rectangle12: TRectangle;
Image12: TImage;
Rectangle13: TRectangle;
Image13: TImage;
Rectangle14: TRectangle;
Image14: TImage;
procedure btnBackClick(Sender: TObject);
procedure btnHomeClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
constructor Create(AOwner:TComponent);
end;
var
MainForm: TMainForm;
implementation
{$R *.fmx}
procedure TMainForm.btnBackClick(Sender: TObject);
begin
//...
end;
procedure TMainForm.btnHomeClick(Sender: TObject);
begin
TabControl.GotoVisibleTab(TRectangle(Sender).Tag,TTabTransition.Slide,TTabTransitionDirection.Normal);
end;
constructor TMainForm.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
//...
TabControl.ActiveTab := tHome;
end;
procedure TMainForm.FormCreate(Sender: TObject);
begin
TabControl.ActiveTab := tHome;
end;
end.