File: frmmain.dfm

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 (490 lines) | stat: -rw-r--r-- 10,249 bytes parent folder | download | duplicates (12)
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
object MainForm: TMainForm
  Left = 319
  Top = 165
  Width = 734
  Height = 522
  ActiveControl = GDBA
  Caption = 'Addressbook'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -13
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  Menu = MMain
  OnClose = FormClose
  OnCloseQuery = FormCloseQuery
  PixelsPerInch = 120
  TextHeight = 16
  object PTop: TPanel
    Left = 0
    Top = 0
    Width = 726
    Height = 33
    Align = alTop
    BevelOuter = bvLowered
    TabOrder = 0
    object DBNavigator1: TDBNavigator
      Left = 448
      Top = 4
      Width = 260
      Height = 25
      DataSource = DSAddress
      Anchors = [akTop, akRight]
      TabOrder = 0
    end
  end
  object GDBA: TDBGrid
    Left = 0
    Top = 33
    Width = 726
    Height = 203
    Align = alClient
    DataSource = DSAddress
    TabOrder = 1
    Columns = <
      item
        FieldName = 'FirstName'
        Title.Caption = 'First name'
        Width = 117
        Visible = True
      end
      item
        FieldName = 'LastName'
        Title.Caption = 'Last name'
        Width = 127
        Visible = True
      end
      item
        FieldName = 'Street'
        Title.Caption = 'Street '
        Width = 131
        Visible = True
      end
      item
        FieldName = 'Zip'
        Title.Caption = 'Zip '
        Visible = True
      end
      item
        FieldName = 'Town'
        Title.Caption = 'Town '
        Width = 100
        Visible = True
      end
      item
        FieldName = 'Country'
        Title.Caption = 'Country '
        Visible = True
      end
      item
        FieldName = 'Telephone'
        Title.Caption = 'Telephone '
        Visible = True
      end
      item
        FieldName = 'Fax'
        Title.Caption = 'Fax '
        Visible = True
      end
      item
        FieldName = 'Mobile'
        Title.Caption = 'Mobile '
        Visible = True
      end
      item
        FieldName = 'Email'
        Title.Caption = 'Email '
        Visible = True
      end
      item
        FieldName = 'WWW'
        Title.Caption = 'WWW '
        Visible = True
      end>
  end
  object PBottom: TPanel
    Left = 0
    Top = 236
    Width = 726
    Height = 230
    Align = alBottom
    BevelOuter = bvLowered
    TabOrder = 2
    object LELastName: TLabel
      Left = 8
      Top = 8
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&Last name'
      FocusControl = ELastName
      Layout = tlCenter
    end
    object LEFirstName: TLabel
      Left = 8
      Top = 32
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&First name'
      FocusControl = EFirstName
      Layout = tlCenter
    end
    object LEStreet: TLabel
      Left = 8
      Top = 64
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&Street'
      FocusControl = EStreet
      Layout = tlCenter
    end
    object LEZip: TLabel
      Left = 8
      Top = 88
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&Zip'
      FocusControl = EZip
      Layout = tlCenter
    end
    object LETown: TLabel
      Left = 264
      Top = 88
      Width = 41
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = 'T&own'
      FocusControl = ETown
      Layout = tlCenter
    end
    object LETelephone: TLabel
      Left = 8
      Top = 144
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&Telephone'
      FocusControl = ETelephone
      Layout = tlCenter
    end
    object LECountry: TLabel
      Left = 8
      Top = 112
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = 'Countr&y'
      FocusControl = ECountry
      Layout = tlCenter
    end
    object LEFax: TLabel
      Left = 288
      Top = 144
      Width = 41
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = 'Fa&x'
      FocusControl = EFax
      Layout = tlCenter
    end
    object LEMobile: TLabel
      Left = 472
      Top = 144
      Width = 41
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&Mobile'
      FocusControl = EMobile
      Layout = tlCenter
    end
    object LEEmail: TLabel
      Left = 8
      Top = 176
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&Email'
      FocusControl = EEmail
      Layout = tlCenter
    end
    object LEWWW: TLabel
      Left = 8
      Top = 200
      Width = 144
      Height = 24
      Alignment = taRightJustify
      AutoSize = False
      Caption = '&WWW'
      FocusControl = EWWW
      Layout = tlCenter
    end
    object ELastName: TDBEdit
      Left = 160
      Top = 8
      Width = 361
      Height = 24
      DataField = 'LastName'
      DataSource = DSAddress
      TabOrder = 0
    end
    object EFirstName: TDBEdit
      Left = 160
      Top = 32
      Width = 361
      Height = 24
      DataField = 'FirstName'
      DataSource = DSAddress
      TabOrder = 1
    end
    object EStreet: TDBEdit
      Left = 160
      Top = 64
      Width = 361
      Height = 24
      DataField = 'Street'
      DataSource = DSAddress
      TabOrder = 2
    end
    object EZip: TDBEdit
      Left = 160
      Top = 88
      Width = 89
      Height = 24
      DataField = 'Zip'
      DataSource = DSAddress
      TabOrder = 3
    end
    object ECountry: TDBEdit
      Left = 160
      Top = 112
      Width = 361
      Height = 24
      DataField = 'Country'
      DataSource = DSAddress
      TabOrder = 5
    end
    object EWWW: TDBEdit
      Left = 160
      Top = 200
      Width = 361
      Height = 24
      DataField = 'WWW'
      DataSource = DSAddress
      TabOrder = 10
    end
    object ETelephone: TDBEdit
      Left = 160
      Top = 144
      Width = 121
      Height = 24
      DataField = 'Telephone'
      DataSource = DSAddress
      TabOrder = 6
    end
    object EFax: TDBEdit
      Left = 336
      Top = 144
      Width = 121
      Height = 24
      DataField = 'Fax'
      DataSource = DSAddress
      TabOrder = 7
    end
    object EMobile: TDBEdit
      Left = 520
      Top = 144
      Width = 121
      Height = 24
      DataField = 'Mobile'
      DataSource = DSAddress
      TabOrder = 8
    end
    object EEmail: TDBEdit
      Left = 160
      Top = 176
      Width = 361
      Height = 24
      DataField = 'Email'
      DataSource = DSAddress
      TabOrder = 9
    end
    object ETown: TDBEdit
      Left = 312
      Top = 88
      Width = 209
      Height = 24
      DataField = 'Town'
      DataSource = DSAddress
      TabOrder = 4
    end
  end
  object MMain: TMainMenu
    Left = 64
    Top = 72
    object MFile: TMenuItem
      Caption = '&File'
      object MINew: TMenuItem
        Action = ANew
      end
      object MIOpen: TMenuItem
        Action = AOpen
      end
      object MIClose: TMenuItem
        Action = AClose
      end
      object N1: TMenuItem
        Caption = '-'
      end
      object MIQuit: TMenuItem
        Action = AQuit
      end
    end
    object Record1: TMenuItem
      Caption = '&Record'
      object MIFirst: TMenuItem
        Action = AFirst
      end
      object MILAst: TMenuItem
        Action = ALast
      end
      object MIPrior: TMenuItem
        Action = APrior
      end
      object MINext: TMenuItem
        Action = ANext
      end
      object N2: TMenuItem
        Caption = '-'
      end
      object MIInsert: TMenuItem
        Action = AInsert
      end
      object MIEdit: TMenuItem
        Action = AEdit
      end
      object MIDelete: TMenuItem
        Action = ADelete
      end
      object MIPost: TMenuItem
        Action = APost
      end
      object MICancel: TMenuItem
        Action = ACancel
      end
      object MIRefresh: TMenuItem
        Action = ARefresh
      end
    end
  end
  object ALMain: TActionList
    Left = 64
    Top = 112
    object ANew: TAction
      Caption = '&New'
      OnExecute = ANewExecute
    end
    object AOpen: TAction
      Caption = '&Open'
      ShortCut = 16463
      OnExecute = AOpenExecute
    end
    object AClose: TAction
      Caption = '&Close'
      OnExecute = ACloseExecute
      OnUpdate = ACloseUpdate
    end
    object AQuit: TAction
      Caption = '&Quit'
      ShortCut = 16465
      OnExecute = AQuitExecute
    end
    object AFirst: TAction
      Category = 'Dataset'
      Caption = '&First'
      ShortCut = 16454
    end
    object APrior: TAction
      Category = 'Dataset'
      Caption = '&Prior'
    end
    object ANext: TAction
      Category = 'Dataset'
      Caption = '&Next'
    end
    object ALast: TAction
      Category = 'Dataset'
      Caption = '&Last'
      ShortCut = 16460
    end
    object AInsert: TAction
      Category = 'Dataset'
      Caption = '&Insert'
      ShortCut = 16462
    end
    object ADelete: TAction
      Category = 'Dataset'
      Caption = '&Delete'
      ShortCut = 16452
    end
    object AEdit: TAction
      Category = 'Dataset'
      Caption = '&Edit'
      ShortCut = 113
    end
    object APost: TAction
      Category = 'Dataset'
      Caption = 'P&ost'
      ShortCut = 16467
    end
    object ACancel: TAction
      Category = 'Dataset'
      Caption = '&Cancel'
    end
    object ARefresh: TAction
      Category = 'Dataset'
      Caption = '&Refresh'
      ShortCut = 116
    end
  end
  object DBA: TDbf
    IndexDefs = <>
    StoreDefs = True
    TableLevel = 4
    AfterInsert = DBAAfterInsert
    Left = 96
    Top = 112
  end
  object SDDBA: TSaveDialog
    DefaultExt = '.dbf'
    Filter = 'DBF files|*.dbf|All files|*.*'
    Options = [ofHideReadOnly, ofPathMustExist, ofEnableSizing]
    Left = 96
    Top = 144
  end
  object ODDBA: TOpenDialog
    DefaultExt = '.dbf'
    Filter = 'DBF files|*.dbf|All files|*.*'
    Options = [ofHideReadOnly, ofFileMustExist, ofEnableSizing]
    Left = 64
    Top = 144
  end
  object DSAddress: TDataSource
    DataSet = DBA
    Left = 128
    Top = 112
  end
end