-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathView.NewForm.fmx
231 lines (231 loc) · 7.1 KB
/
View.NewForm.fmx
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
inherited NewFormFrame: TNewFormFrame
Size.Width = 381.000000000000000000
Size.Height = 653.000000000000000000
inherited MainLayout: TGridPanelLayout
Size.Width = 381.000000000000000000
Size.Height = 653.000000000000000000
ControlCollection = <
item
Column = 0
Control = HeaderRect
Row = 0
end
item
Column = 0
Control = Lyt
Row = 1
end
item
Column = 0
Control = LytCoord
Row = 2
end
item
Column = 0
Control = LytIPLocationFlag
Row = 3
end
item
Column = 0
Control = LytCityZipCode
Row = 4
end>
RowCollection = <
item
Value = 12.035403915032790000
end
item
Value = 28.031772560420320000
end
item
SizeStyle = Auto
Value = 15.000000000000000000
end
item
Value = 15.195483346542270000
end
item
Value = 16.070791410976970000
end
item
Value = 28.666548767027630000
end>
inherited HeaderRect: TRectangle
Size.Width = 381.000000000000000000
Size.Height = 72.573493957519530000
inherited CaptionLbl: TLabel
Size.Width = 381.000000000000000000
Size.Height = 69.573493957519530000
TextSettings.Font.StyleExt = {00060000000000000004000000}
Text = 'IP Intelligence in Delphi'
inherited HamburgerImg: TPath
Size.Height = 52.573493957519530000
inherited HitBox: TLayout
Size.Height = 58.573493957519530000
end
end
end
end
object Lyt: TLayout
Align = Client
Margins.Left = 5.000000000000000000
Margins.Top = 5.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Size.Width = 371.000000000000000000
Size.Height = 159.031616210937500000
Size.PlatformDefault = False
TabOrder = 0
object EdtIP: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
TabOrder = 1
TextSettings.Font.Size = 16.000000000000000000
Position.X = 8.000000000000000000
Position.Y = 94.000000000000000000
Size.Width = 161.000000000000000000
Size.Height = 27.000000000000000000
Size.PlatformDefault = False
TextPrompt = '12.934.211.001'
StyledSettings = [Family, Style, FontColor]
end
object BtnCheckIP: TButton
Anchors = [akLeft, akTop, akRight]
StyledSettings = [Family, Style, FontColor]
Position.X = 184.000000000000000000
Position.Y = 34.000000000000000000
Size.Width = 177.000000000000000000
Size.Height = 89.000000000000000000
Size.PlatformDefault = False
TabOrder = 2
Text = 'Check IP'
TextSettings.Font.Size = 16.000000000000000000
OnClick = BtnCheckIPClick
end
object EdtAccKey: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
TabOrder = 0
TextSettings.Font.Size = 16.000000000000000000
Position.X = 8.000000000000000000
Position.Y = 38.000000000000000000
Size.Width = 161.000000000000000000
Size.Height = 27.000000000000000000
Size.PlatformDefault = False
TextPrompt = 'API Access Key'
StyledSettings = [Family, Style, FontColor]
end
end
object LytCoord: TLayout
Align = Client
Margins.Left = 5.000000000000000000
Margins.Top = 5.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Size.Width = 371.000000000000000000
Size.Height = 39.999938964843750000
Size.PlatformDefault = False
TabOrder = 1
object LblLatitude: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = 8.000000000000000000
Position.Y = 8.000000000000000000
Size.Width = 161.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
Text = 'Latitude: '
TabOrder = 1
end
object LblLongitude: TLabel
Anchors = [akTop, akRight]
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = 206.000000000000000000
Position.Y = 8.000000000000000000
Size.Width = 174.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
Text = 'Longtitude: '
TabOrder = 0
end
end
object LytIPLocationFlag: TLayout
Align = Client
Margins.Left = 5.000000000000000000
Margins.Top = 5.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Size.Width = 371.000000000000000000
Size.Height = 81.628784179687500000
Size.PlatformDefault = False
TabOrder = 2
object LblIPLocation: TLabel
Align = Center
StyledSettings = [Family, Style, FontColor]
Size.Width = 233.000000000000000000
Size.Height = 33.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
Text = 'IP Location: '
TabOrder = 0
end
end
object LytCityZipCode: TLayout
Align = Client
Margins.Left = 5.000000000000000000
Margins.Top = 5.000000000000000000
Margins.Right = 5.000000000000000000
Margins.Bottom = 5.000000000000000000
Size.Width = 371.000000000000000000
Size.Height = 86.906890869140630000
Size.PlatformDefault = False
TabOrder = 3
object LblCity: TLabel
Anchors = [akLeft, akTop, akRight]
StyledSettings = [Family, Style, FontColor]
Position.X = 8.000000000000000000
Position.Y = 16.000000000000000000
Size.Width = 191.000000000000000000
Size.Height = 25.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
Text = 'City: '
TabOrder = 1
end
object LblZipCode: TLabel
Anchors = [akTop, akRight]
StyledSettings = [Family, Style, FontColor]
Position.X = 206.000000000000000000
Position.Y = 16.000000000000000000
Size.Width = 169.000000000000000000
Size.Height = 25.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 16.000000000000000000
Text = 'Zip Code: '
TabOrder = 0
end
end
end
object RESTClient1: TRESTClient
Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8,'
AcceptCharset = 'utf-8, *;q=0.8'
BaseURL = 'http://api.ipapi.com/api/161.185.160.93'
Params = <>
Left = 80
Top = 536
end
object RESTRequest1: TRESTRequest
AssignedValues = [rvConnectTimeout, rvReadTimeout]
Client = RESTClient1
Params = <>
Response = RESTResponse1
Left = 176
Top = 536
end
object RESTResponse1: TRESTResponse
ContentType = 'application/json'
Left = 296
Top = 536
end
end