ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/employee/unit2.lfm
Revision: 86
Committed: Mon Jan 1 11:31:23 2018 UTC (6 years, 10 months ago) by tony
File size: 1994 byte(s)
Log Message:
Updated example form layouts

File Contents

# User Rev Content
1 tony 21 object SelectDeptDlg: TSelectDeptDlg
2     Left = 677
3     Height = 449
4     Top = 296
5     Width = 485
6     BorderStyle = bsDialog
7     Caption = 'Select Department'
8     ClientHeight = 449
9     ClientWidth = 485
10 tony 7 OnClose = FormClose
11     OnShow = FormShow
12 tony 86 Position = poMainFormCenter
13     LCLVersion = '1.8.1.0'
14 tony 7 object Label1: TLabel
15 tony 21 Left = 16
16 tony 86 Height = 14
17 tony 21 Top = 16
18 tony 7 Width = 79
19 tony 21 Caption = 'Departments'
20 tony 7 ParentColor = False
21     end
22 tony 21 object DeptsTreeView: TIBTreeView
23     Left = 19
24     Height = 399
25     Top = 37
26     Width = 359
27     TextField = 'DEPARTMENT'
28     DataSource = DataSource1
29     HasChildField = 'CHILDCOUNT'
30 tony 7 KeyField = 'DEPT_NO'
31 tony 21 ParentField = 'HEAD_DEPT'
32     ReadOnly = True
33     RelationName = 'A'
34     TabOrder = 0
35     OnDblClick = DeptsTreeViewDblClick
36     Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips, tvoThemedDraw]
37 tony 7 end
38     object Button1: TButton
39 tony 21 Left = 394
40     Height = 30
41     Top = 37
42 tony 7 Width = 75
43     Caption = 'OK'
44     Default = True
45     ModalResult = 1
46 tony 21 TabOrder = 1
47 tony 7 end
48     object Button2: TButton
49 tony 21 Left = 394
50     Height = 30
51     Top = 72
52 tony 7 Width = 75
53     Cancel = True
54     Caption = 'Cancel'
55     ModalResult = 2
56 tony 21 TabOrder = 2
57 tony 7 end
58     object Depts: TIBQuery
59 tony 86 AllowAutoActivateTransaction = False
60 tony 7 Database = Form1.IBDatabase1
61     Transaction = Form1.IBTransaction1
62     BufferChunks = 1000
63     CachedUpdates = False
64 tony 21 GenerateParamNames = False
65 tony 7 GeneratorField.ApplyOnEvent = gaeOnNewRecord
66     SQL.Strings = (
67 tony 21 'Select A.DEPT_NO, A.DEPARTMENT, A.HEAD_DEPT,count(B.DEPT_NO)'
68     'as ChildCount '
69     'From DEPARTMENT A'
70     'Left Outer JOIN DEPARTMENT B '
71     ' On B.HEAD_DEPT = A.DEPT_NO'
72     'Group By A.DEPT_NO, A.DEPARTMENT, A.HEAD_DEPT'
73 tony 7 )
74     Params = <>
75 tony 86 DataSetCloseAction = dcDiscardChanges
76 tony 21 left = 432
77     top = 125
78 tony 7 end
79 tony 21 object DataSource1: TDataSource
80 tony 7 DataSet = Depts
81 tony 21 left = 392
82     top = 125
83 tony 7 end
84     end