Skip to content

Commit 3fca286

Browse files
committed
feat: auto-adjust width of various combo boxes
refs #2551
1 parent 8644cd7 commit 3fca286

12 files changed

Lines changed: 20 additions & 0 deletions

source/connections.dfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ object connform: Tconnform
343343
Top = 36
344344
Width = 316
345345
Height = 22
346+
AutoDropDownWidth = True
346347
Style = csDropDownList
347348
Anchors = [akLeft, akTop, akRight]
348349
TabOrder = 1

source/createdatabase.dfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ object CreateDatabaseForm: TCreateDatabaseForm
8787
Top = 42
8888
Width = 213
8989
Height = 21
90+
AutoDropDownWidth = True
9091
Style = csDropDownList
9192
DropDownCount = 16
9293
Sorted = True

source/customize_highlighter.dfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ object frmCustomizeHighlighter: TfrmCustomizeHighlighter
4545
Top = 8
4646
Width = 145
4747
Height = 23
48+
AutoDropDownWidth = True
4849
Style = csDropDownList
4950
Sorted = True
5051
TabOrder = 0

source/event_editor.dfm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ object frmEventEditor: TfrmEventEditor
171171
Top = 3
172172
Width = 194
173173
Height = 21
174+
AutoDropDownWidth = True
174175
Anchors = [akLeft, akTop, akRight]
175176
TabOrder = 4
176177
Text = 'comboDefiner'
@@ -247,6 +248,7 @@ object frmEventEditor: TfrmEventEditor
247248
Top = 48
248249
Width = 133
249250
Height = 21
251+
AutoDropDownWidth = True
250252
Style = csDropDownList
251253
TabOrder = 6
252254
OnChange = comboEveryIntervalChange

source/grideditlinks.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ function TEnumEditorLink.PrepareEdit(Tree: TBaseVirtualTree; Node: PVirtualNode;
969969
FCombo.Items.AddStrings(DisplayList)
970970
else
971971
FCombo.Items.AddStrings(ValueList);
972+
FCombo.AutoDropDownWidth := True;
972973
FCombo.ItemIndex := ValueList.IndexOf(FCellText);
973974
if AllowCustomText and FAllowEdit then begin
974975
FCombo.Style := csDropDown;

source/insertfiles.dfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ object frmInsertFiles: TfrmInsertFiles
8686
Top = 23
8787
Width = 159
8888
Height = 21
89+
AutoDropDownWidth = True
8990
Style = csDropDownList
9091
Anchors = [akLeft, akTop, akRight]
9192
TabOrder = 1

source/routine_editor.dfm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ object frmRoutineEditor: TfrmRoutineEditor
239239
Top = 87
240240
Width = 310
241241
Height = 21
242+
AutoDropDownWidth = True
242243
TabOrder = 4
243244
Text = 'comboReturns'
244245
OnChange = Modification
@@ -267,6 +268,7 @@ object frmRoutineEditor: TfrmRoutineEditor
267268
Top = 8
268269
Width = 194
269270
Height = 21
271+
AutoDropDownWidth = True
270272
Anchors = [akLeft, akTop, akRight]
271273
TabOrder = 1
272274
Text = 'comboDefiner'

source/table_editor.dfm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ object frmTableEditor: TfrmTableEditor
150150
Top = 3
151151
Width = 102
152152
Height = 23
153+
AutoDropDownWidth = True
153154
Style = csDropDownList
154155
DropDownCount = 16
155156
Sorted = True
@@ -178,6 +179,7 @@ object frmTableEditor: TfrmTableEditor
178179
Top = 26
179180
Width = 221
180181
Height = 23
182+
AutoDropDownWidth = True
181183
Style = csDropDownList
182184
TabOrder = 7
183185
OnSelect = comboEngineSelect

source/tabletools.dfm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ object frmTableTools: TfrmTableTools
472472
Top = 127
473473
Width = 422
474474
Height = 22
475+
AutoDropDownWidth = True
475476
Anchors = [akLeft, akTop, akRight]
476477
DropDownCount = 16
477478
ParentShowHint = False
@@ -532,6 +533,7 @@ object frmTableTools: TfrmTableTools
532533
Top = 3
533534
Width = 339
534535
Height = 22
536+
AutoDropDownWidth = True
535537
Style = csDropDownList
536538
Anchors = [akLeft, akTop, akRight]
537539
Enabled = False
@@ -560,6 +562,7 @@ object frmTableTools: TfrmTableTools
560562
Top = 49
561563
Width = 339
562564
Height = 22
565+
AutoDropDownWidth = True
563566
Style = csDropDownList
564567
Anchors = [akLeft, akTop, akRight]
565568
DropDownCount = 16
@@ -581,6 +584,7 @@ object frmTableTools: TfrmTableTools
581584
Top = 26
582585
Width = 339
583586
Height = 22
587+
AutoDropDownWidth = True
584588
Style = csDropDownList
585589
Anchors = [akLeft, akTop, akRight]
586590
Enabled = False
@@ -600,6 +604,7 @@ object frmTableTools: TfrmTableTools
600604
Top = 72
601605
Width = 339
602606
Height = 22
607+
AutoDropDownWidth = True
603608
Style = csDropDownList
604609
Anchors = [akLeft, akTop, akRight]
605610
DropDownCount = 16

source/texteditor.dfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ object frmTextEditor: TfrmTextEditor
151151
Width = 145
152152
Height = 22
153153
Align = alLeft
154+
AutoDropDownWidth = True
154155
Style = csDropDownList
155156
Sorted = True
156157
TabOrder = 1

0 commit comments

Comments
 (0)