ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/lookupcombobox/Unit2.lfm
Revision: 263
Committed: Thu Dec 6 15:55:01 2018 UTC (5 years, 4 months ago) by tony
File size: 2051 byte(s)
Log Message:
Release 2.3.2 committed

File Contents

# Content
1 object SelectDeptDlg: TSelectDeptDlg
2 Left = 1195
3 Height = 449
4 Top = 507
5 Width = 485
6 BorderStyle = bsDialog
7 Caption = 'Select Department'
8 ClientHeight = 449
9 ClientWidth = 485
10 OnClose = FormClose
11 OnShow = FormShow
12 Position = poOwnerFormCenter
13 LCLVersion = '2.0.0.2'
14 object Label1: TLabel
15 Left = 16
16 Height = 14
17 Top = 16
18 Width = 79
19 Caption = 'Departments'
20 ParentColor = False
21 end
22 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 KeyField = 'DEPT_NO'
31 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 end
38 object Button1: TButton
39 Left = 394
40 Height = 30
41 Top = 37
42 Width = 75
43 Caption = 'OK'
44 Default = True
45 ModalResult = 1
46 TabOrder = 1
47 end
48 object Button2: TButton
49 Left = 394
50 Height = 30
51 Top = 72
52 Width = 75
53 Cancel = True
54 Caption = 'Cancel'
55 ModalResult = 2
56 TabOrder = 2
57 end
58 object Depts: TIBQuery
59 AllowAutoActivateTransaction = False
60 Database = Form1.IBDatabase1
61 Transaction = Form1.IBTransaction1
62 BufferChunks = 1000
63 CachedUpdates = False
64 EnableStatistics = False
65 GenerateParamNames = False
66 GeneratorField.ApplyOnEvent = gaeOnNewRecord
67 MasterDetailDelay = 0
68 SQL.Strings = (
69 'Select A.DEPT_NO, A.DEPARTMENT, A.HEAD_DEPT,count(B.DEPT_NO)'
70 'as ChildCount '
71 'From DEPARTMENT A'
72 'Left Outer JOIN DEPARTMENT B '
73 ' On B.HEAD_DEPT = A.DEPT_NO'
74 'Group By A.DEPT_NO, A.DEPARTMENT, A.HEAD_DEPT'
75 )
76 Params = <>
77 DataSetCloseAction = dcDiscardChanges
78 left = 432
79 top = 125
80 end
81 object DataSource1: TDataSource
82 DataSet = Depts
83 left = 392
84 top = 125
85 end
86 end