File: unit1.lfm

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (395 lines) | stat: -rw-r--r-- 9,188 bytes parent folder | download | duplicates (7)
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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
object Form1: TForm1
  Left = 350
  Height = 573
  Top = 215
  Width = 471
  HorzScrollBar.Page = 471
  VertScrollBar.Page = 573
  AutoScroll = True
  AutoSize = True
  Caption = 'Pen and Brush'
  ClientHeight = 573
  ClientWidth = 471
  OnCreate = FormCreate
  OnDestroy = FormDestroy
  Position = poScreenCenter
  LCLVersion = '0.9.31'
  object PaintBox: TPaintBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = Owner
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    Left = 11
    Height = 169
    Top = 7
    Width = 449
    Anchors = [akTop, akLeft, akRight]
    BorderSpacing.Left = 11
    BorderSpacing.Top = 7
    BorderSpacing.Right = 11
    OnPaint = PaintBoxPaint
  end
  object Label3: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = WidthCombo
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 269
    Width = 36
    BorderSpacing.Left = 7
    Caption = 'Width:'
    ParentColor = False
  end
  object Label4: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = CapsCombo
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 328
    Width = 53
    BorderSpacing.Left = 7
    Caption = 'End Caps:'
    ParentColor = False
  end
  object Label5: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = JoinCombo
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 358
    Width = 53
    BorderSpacing.Left = 7
    Caption = 'Join Style:'
    ParentColor = False
  end
  object Label6: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = PenColorBox
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 299
    Width = 33
    BorderSpacing.Left = 7
    Caption = 'Color:'
    ParentColor = False
  end
  object Bevel1: TBevel
    AnchorSideLeft.Control = Label1
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = Label1
    AnchorSideTop.Side = asrCenter
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    Left = 88
    Height = 3
    Top = 220
    Width = 372
    Anchors = [akTop, akLeft, akRight]
    BorderSpacing.Left = 10
    BorderSpacing.Right = 11
  end
  object Label1: TLabel
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = FigureCombo
    AnchorSideTop.Side = asrBottom
    Left = 11
    Height = 16
    Top = 213
    Width = 67
    BorderSpacing.Left = 11
    BorderSpacing.Top = 7
    Caption = 'Pen options:'
    ParentColor = False
  end
  object Label2: TLabel
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = JoinCombo
    AnchorSideTop.Side = asrBottom
    Left = 11
    Height = 16
    Top = 385
    Width = 77
    BorderSpacing.Left = 11
    BorderSpacing.Top = 7
    Caption = 'Brush options:'
    ParentColor = False
  end
  object Bevel2: TBevel
    AnchorSideLeft.Control = Bevel1
    AnchorSideTop.Control = Label2
    AnchorSideTop.Side = asrCenter
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    Left = 88
    Height = 3
    Top = 392
    Width = 372
    Anchors = [akTop, akLeft, akRight]
    BorderSpacing.Right = 11
  end
  object Label7: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = PenStyleCombo
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 239
    Width = 29
    BorderSpacing.Left = 7
    Caption = 'Style:'
    ParentColor = False
  end
  object Label8: TLabel
    AnchorSideLeft.Control = Label2
    AnchorSideTop.Control = BrushStyleCombo
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 411
    Width = 29
    BorderSpacing.Left = 7
    Caption = 'Style:'
    ParentColor = False
  end
  object Label9: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = BrushColorBox
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 441
    Width = 33
    BorderSpacing.Left = 7
    Caption = 'Color:'
    ParentColor = False
  end
  object Label10: TLabel
    AnchorSideLeft.Control = Label1
    AnchorSideTop.Control = FigureCombo
    AnchorSideTop.Side = asrCenter
    Left = 18
    Height = 16
    Top = 186
    Width = 37
    BorderSpacing.Left = 7
    Caption = 'Figure:'
    ParentColor = False
  end
  object Button1: TBitBtn
    AnchorSideTop.Control = BrushColorBox
    AnchorSideTop.Side = asrBottom
    AnchorSideRight.Control = Owner
    AnchorSideRight.Side = asrBottom
    AnchorSideBottom.Control = Owner
    AnchorSideBottom.Side = asrBottom
    Left = 386
    Height = 26
    Top = 471
    Width = 74
    Anchors = [akTop, akRight]
    AutoSize = True
    BorderSpacing.Around = 11
    Caption = 'Close'
    Kind = bkClose
    NumGlyphs = 0
    TabOrder = 0
  end
  object WidthCombo: TComboBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = PenStyleCombo
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 23
    Top = 266
    Width = 140
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 15
    ItemIndex = 0
    Items.Strings = (
      '1'
      '2'
      '3'
      '4'
      '5'
      '6'
      '7'
    )
    OnChange = PenChange
    Style = csDropDownList
    TabOrder = 1
    Text = '1'
  end
  object CapsCombo: TComboBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = PenColorBox
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 23
    Top = 325
    Width = 140
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 15
    ItemIndex = 0
    Items.Strings = (
      'Round'
      'Square'
      'Flat'
    )
    OnChange = PenChange
    Style = csDropDownList
    TabOrder = 2
    Text = 'Round'
  end
  object JoinCombo: TComboBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = CapsCombo
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 23
    Top = 355
    Width = 140
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 15
    ItemIndex = 0
    Items.Strings = (
      'Round'
      'Bevel'
      'Mitter'
    )
    OnChange = PenChange
    Style = csDropDownList
    TabOrder = 3
    Text = 'Round'
  end
  object PenColorBox: TColorBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = WidthCombo
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 22
    Top = 296
    Width = 140
    Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbCustomColor, cbPrettyNames]
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 16
    OnChange = PenChange
    TabOrder = 4
  end
  object PenStyleCombo: TComboBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = Label1
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 23
    Top = 236
    Width = 140
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 15
    OnChange = PenChange
    Style = csDropDownList
    TabOrder = 5
  end
  object BrushStyleCombo: TComboBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = Label2
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 23
    Top = 408
    Width = 140
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 15
    OnChange = BrushChange
    Style = csDropDownList
    TabOrder = 6
  end
  object BrushColorBox: TColorBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = BrushStyleCombo
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 22
    Top = 438
    Width = 140
    Selected = clBtnFace
    Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbCustomColor, cbPrettyNames]
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 16
    OnChange = BrushChange
    TabOrder = 7
  end
  object FigureCombo: TComboBox
    AnchorSideLeft.Control = Owner
    AnchorSideTop.Control = PaintBox
    AnchorSideTop.Side = asrBottom
    Left = 100
    Height = 23
    Top = 183
    Width = 140
    AutoSelect = False
    BorderSpacing.Left = 100
    BorderSpacing.Top = 7
    ItemHeight = 15
    ItemIndex = 0
    Items.Strings = (
      'Line'
      'PolyLine'
      'Ellipse'
      'Rectangle'
      'Triangle'
    )
    OnChange = FigureComboChange
    Style = csDropDownList
    TabOrder = 8
    Text = 'Line'
  end
  object cbCosmetic: TCheckBox
    AnchorSideLeft.Control = WidthCombo
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = WidthCombo
    AnchorSideTop.Side = asrCenter
    Left = 247
    Height = 19
    Top = 268
    Width = 70
    BorderSpacing.Left = 7
    Caption = 'Cosmetic'
    Checked = True
    OnChange = PenChange
    State = cbChecked
    TabOrder = 9
  end
  object cbAntialiasing: TCheckBox
    AnchorSideLeft.Control = FigureCombo
    AnchorSideLeft.Side = asrBottom
    AnchorSideTop.Control = FigureCombo
    AnchorSideTop.Side = asrCenter
    Left = 247
    Height = 19
    Top = 185
    Width = 82
    AllowGrayed = True
    BorderSpacing.Left = 7
    Caption = 'Antialiasing'
    OnChange = cbAntialiasingChange
    TabOrder = 10
  end
end