-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontForm.fmx
248 lines (248 loc) · 7.22 KB
/
FontForm.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
object fontSelect: TfontSelect
Left = 0
Top = 0
Caption = 'Font'
ClientHeight = 447
ClientWidth = 450
Position = MainFormCenter
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [Desktop]
OnCreate = FormCreate
DesignerMasterStyle = 0
object cancelButton: TButton
Anchors = [akRight, akBottom]
ModalResult = 2
Position.X = 347.000000000000000000
Position.Y = 413.000000000000000000
Size.Width = 64.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TabOrder = 12
Text = 'Cancel'
end
object okButton: TButton
Anchors = [akRight, akBottom]
ModalResult = 1
Position.X = 265.000000000000000000
Position.Y = 413.000000000000000000
Size.Width = 64.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TabOrder = 13
Text = 'OK'
OnClick = okButtonClick
end
object sizeLabel: TLabel
Anchors = [akTop, akRight]
Position.X = 234.000000000000000000
Position.Y = 22.000000000000000000
Size.Width = 119.000000000000000000
Size.Height = 16.000000000000000000
Size.PlatformDefault = False
TextSettings.WordWrap = False
TextSettings.Trimming = None
Text = 'Size:'
TabOrder = 15
end
object GroupBox2: TGroupBox
Anchors = [akRight, akBottom]
Position.X = 234.000000000000000000
Position.Y = 281.000000000000000000
Size.Width = 180.000000000000000000
Size.Height = 120.000000000000000000
Size.PlatformDefault = False
Text = 'Sample'
TabOrder = 1
object sample: TLabel
Align = Client
StyledSettings = [FontColor]
Size.Width = 180.000000000000000000
Size.Height = 120.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Size = 32.000000000000000000
TextSettings.HorzAlign = Center
TextSettings.Trimming = None
Text = 'AaBbYyZz'
TabOrder = 37
end
end
object GroupBox1: TGroupBox
Anchors = [akLeft, akRight, akBottom]
Position.X = 35.000000000000000000
Position.Y = 281.000000000000000000
Size.Width = 180.000000000000000000
Size.Height = 120.000000000000000000
Size.PlatformDefault = False
Text = 'Additional'
Visible = False
TabOrder = 0
object underline: TCheckBox
Position.X = 40.000000000000000000
Position.Y = 21.000000000000000000
Size.Width = 100.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TabOrder = 38
Text = 'Underline'
OnChange = underlineChange
end
object strikeout: TCheckBox
Position.X = 40.000000000000000000
Position.Y = 45.000000000000000000
Size.Width = 100.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TabOrder = 37
Text = 'Strike out'
OnChange = underlineChange
end
end
object fontSizeList: TListBox
Anchors = [akTop, akRight, akBottom]
Position.X = 234.000000000000000000
Position.Y = 64.000000000000000000
Size.Width = 180.000000000000000000
Size.Height = 203.000000000000000000
Size.PlatformDefault = False
TabOrder = 4
DisableFocusEffect = True
Items.Strings = (
'6'
'7'
'8'
'9'
'10'
'11'
'12'
'14'
'16'
'18'
'20'
'22'
'24'
'26'
'28'
'36'
'48'
'72')
DefaultItemStyles.ItemStyle = ''
DefaultItemStyles.GroupHeaderStyle = ''
DefaultItemStyles.GroupFooterStyle = ''
Viewport.Width = 180.000000000000000000
Viewport.Height = 203.000000000000000000
end
object fontSize: TNumberBox
Touch.InteractiveGestures = [LongTap, DoubleTap]
Anchors = [akTop, akRight]
TabOrder = 6
Cursor = crIBeam
DecimalDigits = 0
Min = 6.000000000000000000
Max = 72.000000000000000000
Value = 32.000000000000000000
Position.X = 234.000000000000000000
Position.Y = 40.000000000000000000
HorzIncrement = 0.000000000000000000
VertIncrement = 0.000000000000000000
EnableDragHighlight = False
Size.Width = 180.000000000000000000
Size.Height = 21.000000000000000000
Size.PlatformDefault = False
OnKeyUp = fontSizeKeyUp
end
object fontFamilyList: TListBox
Anchors = [akLeft, akTop, akRight, akBottom]
Position.X = 35.000000000000000000
Position.Y = 64.000000000000000000
Size.Width = 180.000000000000000000
Size.Height = 203.000000000000000000
Size.PlatformDefault = False
TabOrder = 2
DisableFocusEffect = True
Items.Strings = (
'Arial'
'Corbel'
'Courier'
'Courier New'
'Dimbo'
'Ebrima')
DefaultItemStyles.ItemStyle = ''
DefaultItemStyles.GroupHeaderStyle = ''
DefaultItemStyles.GroupFooterStyle = ''
Sorted = True
Viewport.Width = 180.000000000000000000
Viewport.Height = 203.000000000000000000
end
object familyName: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
Anchors = [akLeft, akTop, akRight]
TabOrder = 3
Position.X = 35.000000000000000000
Position.Y = 40.000000000000000000
Size.Width = 180.000000000000000000
Size.Height = 21.000000000000000000
Size.PlatformDefault = False
OnKeyUp = familyNameKeyUp
end
object familyLabel: TLabel
Anchors = [akLeft, akTop, akRight]
Position.X = 35.000000000000000000
Position.Y = 22.000000000000000000
Size.Width = 120.000000000000000000
Size.Height = 16.000000000000000000
Size.PlatformDefault = False
TextSettings.WordWrap = False
TextSettings.Trimming = None
Text = 'Font family'
TabOrder = 11
end
object BindingsList1: TBindingsList
Methods = <>
OutputConverters = <>
Left = 124
Top = 317
object LinkFillControlToPropertyTextPrompt: TLinkFillControlToProperty
Category = 'Quick Bindings'
Track = True
Control = fontFamilyList
Component = familyName
ComponentProperty = 'Text'
AutoFill = True
FillExpressions = <>
FillHeaderExpressions = <>
FillBreakGroups = <>
end
object LinkFillControlToPropertyFontFamily: TLinkFillControlToProperty
Category = 'Quick Bindings'
Track = True
Control = fontFamilyList
Component = sample
ComponentProperty = 'Font.Family'
AutoFill = True
FillExpressions = <>
InitializeControlValue = False
FillHeaderExpressions = <>
FillBreakGroups = <>
end
object LinkControlToPropertyFontSize: TLinkControlToProperty
Category = 'Quick Bindings'
Control = fontSize
Track = False
Component = sample
ComponentProperty = 'Font.Size'
end
object LinkFillControlToPropertyText2: TLinkFillControlToProperty
Category = 'Quick Bindings'
Track = True
Control = fontSizeList
Component = fontSize
ComponentProperty = 'Value'
AutoFill = True
FillExpressions = <>
InitializeControlValue = False
FillHeaderExpressions = <>
FillBreakGroups = <>
end
end
end