Skip to content

Commit d26f128

Browse files
committed
fix: missing control anchors on create-database dialog
1 parent 3388d9f commit d26f128

File tree

1 file changed

+38
-21
lines changed

1 file changed

+38
-21
lines changed

source/createdatabase.lfm

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ object CreateDatabaseForm: TCreateDatabaseForm
88
ClientWidth = 396
99
Color = clBtnFace
1010
DesignTimePPI = 120
11+
Position = poOwnerFormCenter
1112
OnClose = FormClose
1213
OnCreate = FormCreate
1314
OnShow = FormShow
14-
Position = poOwnerFormCenter
1515
object lblDBName: TLabel
16+
AnchorSideLeft.Control = Owner
1617
AnchorSideTop.Control = Owner
17-
Left = 10
18+
Left = 6
1819
Height = 20
1920
Top = 6
2021
Width = 43
@@ -23,9 +24,10 @@ object CreateDatabaseForm: TCreateDatabaseForm
2324
FocusControl = editDBName
2425
end
2526
object lblCollation: TLabel
27+
AnchorSideLeft.Control = Owner
2628
AnchorSideTop.Control = editDBName
2729
AnchorSideTop.Side = asrBottom
28-
Left = 10
30+
Left = 6
2931
Height = 20
3032
Top = 40
3133
Width = 63
@@ -34,15 +36,15 @@ object CreateDatabaseForm: TCreateDatabaseForm
3436
FocusControl = comboCollation
3537
end
3638
object lblCreateCode: TLabel
39+
AnchorSideLeft.Control = Owner
3740
AnchorSideTop.Control = btnOK
3841
AnchorSideTop.Side = asrBottom
3942
AnchorSideRight.Control = Owner
4043
AnchorSideRight.Side = asrBottom
41-
Left = 10
44+
Left = 6
4245
Height = 20
43-
Top = 137
44-
Width = 380
45-
Anchors = [akTop, akLeft, akRight]
46+
Top = 136
47+
Width = 88
4648
BorderSpacing.Around = 6
4749
Caption = 'CREATE code'
4850
end
@@ -54,17 +56,18 @@ object CreateDatabaseForm: TCreateDatabaseForm
5456
Left = 120
5557
Height = 20
5658
Top = 74
57-
Width = 270
58-
Anchors = [akTop, akLeft, akRight]
59+
Width = 101
5960
BorderSpacing.Around = 6
6061
Caption = 'Servers default:'
6162
end
6263
object editDBName: TEdit
6364
AnchorSideTop.Control = Owner
65+
AnchorSideRight.Control = Owner
66+
AnchorSideRight.Side = asrBottom
6467
Left = 120
6568
Height = 28
6669
Top = 6
67-
Width = 266
70+
Width = 270
6871
Anchors = [akTop, akLeft, akRight]
6972
BorderSpacing.Around = 6
7073
TabOrder = 0
@@ -74,38 +77,47 @@ object CreateDatabaseForm: TCreateDatabaseForm
7477
object btnOK: TButton
7578
AnchorSideTop.Control = lblServerDefaultCollation
7679
AnchorSideTop.Side = asrBottom
77-
Left = 191
78-
Height = 31
80+
AnchorSideRight.Control = btnCancel
81+
Left = 184
82+
Height = 30
7983
Top = 100
80-
Width = 94
84+
Width = 100
8185
Anchors = [akTop, akRight]
86+
AutoSize = True
8287
BorderSpacing.Around = 6
8388
Caption = 'OK'
89+
Constraints.MinWidth = 100
8490
Default = True
8591
TabOrder = 2
8692
OnClick = btnOKClick
8793
end
8894
object btnCancel: TButton
8995
AnchorSideTop.Control = lblServerDefaultCollation
9096
AnchorSideTop.Side = asrBottom
91-
Left = 292
92-
Height = 31
97+
AnchorSideRight.Control = Owner
98+
AnchorSideRight.Side = asrBottom
99+
Left = 290
100+
Height = 30
93101
Top = 100
94-
Width = 94
102+
Width = 100
95103
Anchors = [akTop, akRight]
104+
AutoSize = True
96105
BorderSpacing.Around = 6
97106
Cancel = True
98107
Caption = 'Cancel'
108+
Constraints.MinWidth = 100
99109
ModalResult = 2
100110
TabOrder = 3
101111
end
102112
object comboCollation: TComboBox
103113
AnchorSideTop.Control = editDBName
104114
AnchorSideTop.Side = asrBottom
115+
AnchorSideRight.Control = Owner
116+
AnchorSideRight.Side = asrBottom
105117
Left = 120
106118
Height = 28
107119
Top = 40
108-
Width = 266
120+
Width = 270
109121
Anchors = [akTop, akLeft, akRight]
110122
BorderSpacing.Around = 6
111123
DropDownCount = 16
@@ -116,12 +128,17 @@ object CreateDatabaseForm: TCreateDatabaseForm
116128
OnChange = Modified
117129
end
118130
inline SynMemoCreateCode: TSynEdit
131+
AnchorSideLeft.Control = Owner
119132
AnchorSideTop.Control = lblCreateCode
120133
AnchorSideTop.Side = asrBottom
121-
Left = 10
122-
Height = 111
123-
Top = 163
124-
Width = 376
134+
AnchorSideRight.Control = Owner
135+
AnchorSideRight.Side = asrBottom
136+
AnchorSideBottom.Control = Owner
137+
AnchorSideBottom.Side = asrBottom
138+
Left = 6
139+
Height = 116
140+
Top = 162
141+
Width = 384
125142
BorderSpacing.Around = 6
126143
Anchors = [akTop, akLeft, akRight, akBottom]
127144
Font.Color = clWindowText

0 commit comments

Comments
 (0)