File: frmmain.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 (579 lines) | stat: -rw-r--r-- 12,762 bytes parent folder | download | duplicates (6)
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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
object MainForm: TMainForm
  Left = 484
  Height = 522
  Top = 273
  Width = 734
  HorzScrollBar.Page = 733
  VertScrollBar.Page = 491
  ActiveControl = PTop
  Caption = 'Addressbook'
  ClientHeight = 502
  ClientWidth = 734
  Font.Height = -13
  Font.Name = 'MS Sans Serif'
  Menu = MMain
  OnClose = FormClose
  OnCloseQuery = FormCloseQuery
  LCLVersion = '1.1'
  object PTop: TPanel
    Left = 0
    Height = 33
    Top = 0
    Width = 734
    Align = alTop
    BevelOuter = bvLowered
    ClientHeight = 33
    ClientWidth = 734
    FullRepaint = False
    TabOrder = 0
    object DBNavigator1: TDBNavigator
      Left = 456
      Height = 25
      Top = 4
      Width = 260
      Anchors = [akTop, akRight]
      BevelOuter = bvNone
      ChildSizing.EnlargeHorizontal = crsScaleChilds
      ChildSizing.EnlargeVertical = crsScaleChilds
      ChildSizing.ShrinkHorizontal = crsScaleChilds
      ChildSizing.ShrinkVertical = crsScaleChilds
      ChildSizing.Layout = cclLeftToRightThenTopToBottom
      ChildSizing.ControlsPerLine = 100
      ClientHeight = 25
      ClientWidth = 260
      DataSource = DSAddress
      Options = []
      TabOrder = 0
    end
  end
  object GDBA: TDBGrid
    Left = 0
    Height = 209
    Top = 33
    Width = 734
    Align = alClient
    Color = clWhite
    Columns = <    
      item
        Title.Caption = 'First name'
        Width = 117
        FieldName = 'FirstName'
      end    
      item
        Title.Caption = 'Last name'
        Width = 127
        FieldName = 'LastName'
      end    
      item
        Title.Caption = 'Street '
        Width = 131
        FieldName = 'Street'
      end    
      item
        Title.Caption = 'Zip '
        FieldName = 'Zip'
      end    
      item
        Title.Caption = 'Town '
        Width = 100
        FieldName = 'Town'
      end    
      item
        Title.Caption = 'Country '
        FieldName = 'Country'
      end    
      item
        Title.Caption = 'Telephone '
        FieldName = 'Telephone'
      end    
      item
        Title.Caption = 'Fax '
        FieldName = 'Fax'
      end    
      item
        Title.Caption = 'Mobile '
        FieldName = 'Mobile'
      end    
      item
        Title.Caption = 'Email '
        FieldName = 'Email'
      end    
      item
        Title.Caption = 'WWW '
        FieldName = 'WWW'
      end>
    DataSource = DSAddress
    ReadOnly = True
    TabOrder = 1
    TitleFont.Height = -13
    TitleFont.Name = 'MS Sans Serif'
  end
  object PBottom: TPanel
    Left = 0
    Height = 260
    Top = 242
    Width = 734
    Align = alBottom
    BevelOuter = bvLowered
    ClientHeight = 260
    ClientWidth = 734
    FullRepaint = False
    TabOrder = 2
    object LELastName: TLabel
      Left = 8
      Height = 17
      Top = 8
      Width = 63
      Alignment = taRightJustify
      Caption = '&Last name'
      FocusControl = ELastName
      Layout = tlCenter
      ParentColor = False
    end
    object LEFirstName: TLabel
      Left = 8
      Height = 17
      Top = 34
      Width = 63
      Alignment = taRightJustify
      Caption = '&First name'
      FocusControl = EFirstName
      Layout = tlCenter
      ParentColor = False
    end
    object LEStreet: TLabel
      Left = 8
      Height = 17
      Top = 64
      Width = 36
      Alignment = taRightJustify
      Caption = '&Street'
      FocusControl = EStreet
      Layout = tlCenter
      ParentColor = False
    end
    object LEZip: TLabel
      Left = 8
      Height = 17
      Top = 92
      Width = 20
      Alignment = taRightJustify
      Caption = '&Zip'
      FocusControl = EZip
      Layout = tlCenter
      ParentColor = False
    end
    object LETown: TLabel
      Left = 264
      Height = 17
      Top = 90
      Width = 34
      Alignment = taRightJustify
      Caption = 'T&own'
      FocusControl = ETown
      Layout = tlCenter
      ParentColor = False
    end
    object LETelephone: TLabel
      Left = 8
      Height = 17
      Top = 145
      Width = 67
      Alignment = taRightJustify
      Caption = '&Telephone'
      FocusControl = ETelephone
      Layout = tlCenter
      ParentColor = False
    end
    object LECountry: TLabel
      Left = 8
      Height = 17
      Top = 115
      Width = 46
      Alignment = taRightJustify
      Caption = 'Countr&y'
      FocusControl = ECountry
      Layout = tlCenter
      ParentColor = False
    end
    object LEFax: TLabel
      Left = 288
      Height = 17
      Top = 145
      Width = 23
      Alignment = taRightJustify
      Caption = 'Fa&x'
      FocusControl = EFax
      Layout = tlCenter
      ParentColor = False
    end
    object LEMobile: TLabel
      Left = 472
      Height = 17
      Top = 145
      Width = 42
      Alignment = taRightJustify
      Caption = '&Mobile'
      FocusControl = EMobile
      Layout = tlCenter
      ParentColor = False
    end
    object LEEmail: TLabel
      Left = 8
      Height = 17
      Top = 176
      Width = 35
      Alignment = taRightJustify
      Caption = '&Email'
      FocusControl = EEmail
      Layout = tlCenter
      ParentColor = False
    end
    object LEWWW: TLabel
      Left = 8
      Height = 17
      Top = 200
      Width = 40
      Alignment = taRightJustify
      Caption = '&WWW'
      FocusControl = EWWW
      Layout = tlCenter
      ParentColor = False
    end
    object ELastName: TDBEdit
      Left = 160
      Height = 24
      Top = 8
      Width = 361
      DataField = 'LastName'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 0
    end
    object EFirstName: TDBEdit
      Left = 160
      Height = 24
      Top = 35
      Width = 361
      DataField = 'FirstName'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 1
    end
    object EStreet: TDBEdit
      Left = 160
      Height = 24
      Top = 62
      Width = 361
      DataField = 'Street'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 2
    end
    object EZip: TDBEdit
      Left = 160
      Height = 24
      Top = 89
      Width = 89
      DataField = 'Zip'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 3
    end
    object ECountry: TDBEdit
      Left = 160
      Height = 24
      Top = 116
      Width = 361
      DataField = 'Country'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 5
    end
    object EWWW: TDBEdit
      Left = 160
      Height = 24
      Top = 203
      Width = 361
      DataField = 'WWW'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 10
    end
    object ETelephone: TDBEdit
      Left = 160
      Height = 24
      Top = 144
      Width = 121
      DataField = 'Telephone'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 6
    end
    object EFax: TDBEdit
      Left = 336
      Height = 24
      Top = 144
      Width = 121
      DataField = 'Fax'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 7
    end
    object EMobile: TDBEdit
      Left = 520
      Height = 24
      Top = 144
      Width = 121
      DataField = 'Mobile'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 8
    end
    object EEmail: TDBEdit
      Left = 160
      Height = 24
      Top = 176
      Width = 361
      DataField = 'Email'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 9
    end
    object ETown: TDBEdit
      Left = 320
      Height = 24
      Top = 89
      Width = 201
      DataField = 'Town'
      DataSource = DSAddress
      CharCase = ecNormal
      MaxLength = 0
      TabOrder = 4
    end
  end
  object MMain: TMainMenu
    left = 64
    top = 72
    object MFile: TMenuItem
      Caption = '&File'
      object MINew: TMenuItem
        Action = ANew
        OnClick = ANewExecute
      end
      object MIOpen: TMenuItem
        Action = AOpen
        OnClick = AOpenExecute
      end
      object MIClose: TMenuItem
        Action = AClose
        OnClick = ACloseExecute
      end
      object N1: TMenuItem
        Caption = '-'
      end
      object MIQuit: TMenuItem
        Action = AQuit
        OnClick = AQuitExecute
      end
    end
    object Record1: TMenuItem
      Caption = '&Record'
      object MIFirst: TMenuItem
        Action = AFirst
        OnClick = DoDataAction
      end
      object MILAst: TMenuItem
        Action = ALast
        OnClick = DoDataAction
      end
      object MIPrior: TMenuItem
        Action = APrior
        OnClick = DoDataAction
      end
      object MINext: TMenuItem
        Action = ANext
        OnClick = DoDataAction
      end
      object N2: TMenuItem
        Caption = '-'
      end
      object MIInsert: TMenuItem
        Action = AInsert
        OnClick = DoDataAction
      end
      object MIEdit: TMenuItem
        Action = AEdit
        OnClick = DoDataAction
      end
      object MIDelete: TMenuItem
        Action = ADelete
        OnClick = DoDataAction
      end
      object MIPost: TMenuItem
        Action = APost
        OnClick = DoDataAction
      end
      object MICancel: TMenuItem
        Action = ACancel
        OnClick = DoDataAction
      end
      object MIRefresh: TMenuItem
        Action = ARefresh
        OnClick = DoDataAction
      end
    end
  end
  object ALMain: TActionList
    left = 135
    top = 72
    object ANew: TAction
      Caption = '&New'
      HelpType = htKeyword
      OnExecute = ANewExecute
    end
    object AOpen: TAction
      Caption = '&Open'
      HelpType = htKeyword
      OnExecute = AOpenExecute
      ShortCut = 16463
    end
    object AClose: TAction
      Caption = '&Close'
      HelpType = htKeyword
      OnExecute = ACloseExecute
      OnUpdate = ACloseUpdate
    end
    object AQuit: TAction
      Caption = '&Quit'
      HelpType = htKeyword
      OnExecute = AQuitExecute
      ShortCut = 16465
    end
    object AFirst: TAction
      Category = 'Dataset'
      Caption = '&First'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = DataOpen
      ShortCut = 16454
    end
    object APrior: TAction
      Tag = 1
      Category = 'Dataset'
      Caption = '&Prior'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = DataOpen
    end
    object ANext: TAction
      Tag = 2
      Category = 'Dataset'
      Caption = '&Next'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = DataOpen
    end
    object ALast: TAction
      Tag = 3
      Category = 'Dataset'
      Caption = '&Last'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = DataOpen
      ShortCut = 16460
    end
    object AInsert: TAction
      Tag = 4
      Category = 'Dataset'
      Caption = '&Insert'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = DataOpen
      ShortCut = 16462
    end
    object ADelete: TAction
      Tag = 5
      Category = 'Dataset'
      Caption = '&Delete'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = HaveDataNotEmpty
      ShortCut = 16452
    end
    object AEdit: TAction
      Tag = 6
      Category = 'Dataset'
      Caption = '&Edit'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = HaveDataNotEmpty
      ShortCut = 113
    end
    object APost: TAction
      Tag = 7
      Category = 'Dataset'
      Caption = 'P&ost'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = InEditMode
      ShortCut = 16467
    end
    object ACancel: TAction
      Tag = 8
      Category = 'Dataset'
      Caption = '&Cancel'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = InEditMode
    end
    object ARefresh: TAction
      Category = 'Dataset'
      Caption = '&Refresh'
      HelpType = htKeyword
      OnExecute = DoDataAction
      OnUpdate = DataOpen
      ShortCut = 116
    end
  end
  object DBA: TDbf
    IndexDefs = <>
    StoreDefs = True
    TableLevel = 4
    FilterOptions = []
    AfterInsert = DBAAfterInsert
    left = 215
    top = 72
  end
  object SDDBA: TSaveDialog
    DefaultExt = '.dbf'
    Filter = 'DBF files|*.dbf|All files|*.*'
    FilterIndex = 0
    Options = [ofHideReadOnly, ofPathMustExist, ofEnableSizing]
    left = 135
    top = 144
  end
  object ODDBA: TOpenDialog
    DefaultExt = '.dbf'
    Filter = 'DBF files|*.dbf|All files|*.*'
    FilterIndex = 0
    Options = [ofHideReadOnly, ofFileMustExist, ofEnableSizing]
    left = 64
    top = 144
  end
  object DSAddress: TDatasource
    DataSet = DBA
    left = 290
    top = 72
  end
end