-
Notifications
You must be signed in to change notification settings - Fork 1
/
RandomPickerDisplay.fmx
346 lines (346 loc) · 10.9 KB
/
RandomPickerDisplay.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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
object PickerForm: TPickerForm
Left = 0
Top = 0
Caption = 'Random Picker'
ClientHeight = 488
ClientWidth = 294
StyleBook = dmStyleBooks.sbAquaGraphite
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [Desktop]
OnCreate = FormCreate
OnShow = FormShow
Touch.GestureManager = GestureManager1
OnGesture = FormGesture
DesignerMasterStyle = 0
object Layout3: TLayout
Align = Client
Size.Width = 294.000000000000000000
Size.Height = 216.000000000000000000
Size.PlatformDefault = False
TabOrder = 7
object Button1: TButton
Anchors = [akTop]
Position.X = 75.546264648437500000
Position.Y = 166.000000000000000000
Size.Width = 145.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
Text = 'Spin'
OnClick = Button1Click
end
object Layout1: TLayout
Anchors = [akTop]
Position.X = 75.546264648437500000
Position.Y = 6.000000000000000000
Size.Width = 145.000000000000000000
Size.Height = 65.000000000000000000
Size.PlatformDefault = False
TabOrder = 1
object Label1: TLabel
Align = Top
Size.Width = 145.000000000000000000
Size.Height = 17.000000000000000000
Size.PlatformDefault = False
TextSettings.HorzAlign = Center
Text = 'Maximum Value'
end
object maxValue: TSpinBox
Touch.InteractiveGestures = [LongTap, DoubleTap]
Align = Client
TabOrder = 2
Cursor = crIBeam
Min = 10.000000000000000000
Max = 999.000000000000000000
Value = 100.000000000000000000
Size.Width = 145.000000000000000000
Size.Height = 48.000000000000000000
Size.PlatformDefault = False
end
end
object Panel1: TPanel
Anchors = [akTop]
ClipChildren = True
Position.X = 74.500000000000000000
Position.Y = 83.000000000000000000
Size.Width = 145.000000000000000000
Size.Height = 77.000000000000000000
Size.PlatformDefault = False
TabOrder = 2
object lblNum3: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = 87.000000000000000000
Position.Y = -17.000000000000000000
Size.Width = 67.000000000000000000
Size.Height = 107.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 80.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = '0'
object FloatAnimation3: TFloatAnimation
Tag = 3
Delay = 0.200000002980232200
Duration = 0.250000000000000000
OnProcess = FloatAnimation1Process
OnFinish = FloatAnimation1Finish
PropertyName = 'Position.Y'
StartValue = -15.000000000000000000
StopValue = 57.000000000000000000
end
end
object lblNum2: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = 40.000000000000000000
Position.Y = -17.000000000000000000
Size.Width = 67.000000000000000000
Size.Height = 107.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 80.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = '0'
object FloatAnimation2: TFloatAnimation
Tag = 2
Delay = 0.100000001490116100
Duration = 0.250000000000000000
OnProcess = FloatAnimation1Process
OnFinish = FloatAnimation1Finish
PropertyName = 'Position.Y'
StartValue = -15.000000000000000000
StopValue = 57.000000000000000000
end
end
object lblNum1: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = -9.000000000000000000
Position.Y = -17.000000000000000000
Size.Width = 67.000000000000000000
Size.Height = 107.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 80.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = '0'
object FloatAnimation1: TFloatAnimation
Tag = 1
Duration = 0.250000000000000000
OnProcess = FloatAnimation1Process
OnFinish = FloatAnimation1Finish
PropertyName = 'Position.Y'
StartValue = -15.000000000000000000
StopValue = 57.000000000000000000
end
end
object lblNum4: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = -9.000000000000000000
Position.Y = -90.000000000000000000
Size.Width = 67.000000000000000000
Size.Height = 107.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 80.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = '0'
object FloatAnimation4: TFloatAnimation
Tag = 4
Duration = 0.500000000000000000
OnProcess = FloatAnimation1Process
OnFinish = FloatAnimation1Finish
PropertyName = 'Position.Y'
StartValue = -90.000000000000000000
StopValue = 57.000000000000000000
end
end
object lblNum5: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = 40.000000000000000000
Position.Y = -90.000000000000000000
Size.Width = 67.000000000000000000
Size.Height = 107.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 80.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = '0'
object FloatAnimation5: TFloatAnimation
Tag = 5
Delay = 0.100000001490116100
Duration = 0.500000000000000000
OnProcess = FloatAnimation1Process
OnFinish = FloatAnimation1Finish
PropertyName = 'Position.Y'
StartValue = -90.000000000000000000
StopValue = 57.000000000000000000
end
end
object lblNum6: TLabel
AutoSize = True
StyledSettings = [Family, Style, FontColor]
Position.X = 87.000000000000000000
Position.Y = -90.000000000000000000
Size.Width = 67.000000000000000000
Size.Height = 107.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 80.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = '0'
object FloatAnimation6: TFloatAnimation
Tag = 6
Delay = 0.200000002980232200
Duration = 0.500000000000000000
OnProcess = FloatAnimation1Process
OnFinish = FloatAnimation1Finish
PropertyName = 'Position.Y'
StartValue = -90.000000000000000000
StopValue = 57.000000000000000000
end
end
object LineLeft: TLine
Anchors = [akLeft, akTop, akBottom]
LineType = Diagonal
Position.Y = -10.000000000000000000
Size.Width = 1.000000000000000000
Size.Height = 95.000000000000000000
Size.PlatformDefault = False
end
object LineRight: TLine
Anchors = [akTop, akRight, akBottom]
LineType = Left
Position.X = 144.000000000000000000
Position.Y = -10.000000000000000000
Size.Width = 1.000000000000000000
Size.Height = 151.000000000000000000
Size.PlatformDefault = False
end
object LineTop: TLine
Align = Top
LineType = Diagonal
Size.Width = 145.000000000000000000
Size.Height = 1.000000000000000000
Size.PlatformDefault = False
end
object LineBottom: TLine
LineType = Diagonal
Position.Y = 76.000000000000000000
Size.Width = 145.000000000000000000
Size.Height = 1.000000000000000000
Size.PlatformDefault = False
end
object LineFirst: TLine
LineType = Diagonal
Position.X = 50.000000000000000000
Position.Y = -10.000000000000000000
Size.Width = 1.000000000000000000
Size.Height = 100.000000000000000000
Size.PlatformDefault = False
end
object LineSecond: TLine
LineType = Diagonal
Position.X = 97.000000000000000000
Position.Y = -10.000000000000000000
Size.Width = 1.000000000000000000
Size.Height = 100.000000000000000000
Size.PlatformDefault = False
end
end
end
object Timer1: TTimer
Enabled = False
Interval = 500
OnTimer = Timer1Timer
Left = 16
Top = 8
end
object lbHistory: TListBox
Align = MostBottom
Anchors = [akLeft, akTop, akRight, akBottom]
Position.Y = 304.000000000000000000
Size.Width = 294.000000000000000000
Size.Height = 184.000000000000000000
Size.PlatformDefault = False
TabOrder = 0
Columns = 4
DisableFocusEffect = True
DefaultItemStyles.ItemStyle = 'listboxitemnodetail'
DefaultItemStyles.GroupHeaderStyle = ''
DefaultItemStyles.GroupFooterStyle = ''
end
object ToolBar1: TToolBar
Size.Width = 294.000000000000000000
Size.Height = 48.000000000000000000
Size.PlatformDefault = False
TabOrder = 1
object Label2: TLabel
Align = Contents
Size.Width = 294.000000000000000000
Size.Height = 48.000000000000000000
Size.PlatformDefault = False
TextSettings.HorzAlign = Center
Text = 'Random Picker'
end
end
object Layout2: TLayout
Align = Bottom
Anchors = [akLeft, akTop, akRight]
Position.Y = 264.000000000000000000
Size.Width = 294.000000000000000000
Size.Height = 40.000000000000000000
Size.PlatformDefault = False
TabOrder = 4
object Label3: TLabel
Align = Contents
Size.Width = 294.000000000000000000
Size.Height = 40.000000000000000000
Size.PlatformDefault = False
TextSettings.HorzAlign = Center
TextSettings.WordWrap = False
Text = 'History'
end
object SpeedButton1: TSpeedButton
Align = Right
Position.X = 246.000000000000000000
Size.Width = 48.000000000000000000
Size.Height = 40.000000000000000000
Size.PlatformDefault = False
StyleLookup = 'trashtoolbutton'
Text = 'Clear'
OnClick = SpeedButton1Click
end
end
object GestureManager1: TGestureManager
Left = 16
Top = 64
GestureData = <
item
Control = Owner
Collection = <
item
GestureID = sgiUp
end
item
GestureID = sgiDown
end
item
GestureID = sgiRight
end
item
GestureID = sgiLeft
end
item
GestureID = sgiUpDown
end
item
GestureID = sgiDownUp
end>
end>
end
end