DropdownPosition Property
The DropdownPosition property returns or sets a value that determines the position of the drop-down portion of a combo control.
TDBCombo.DropdownPosition= value
Read/Write at run time and design time.
Property applies to TDBCombo control.
Values
Design Time |
Run Time |
0 - Default Position |
dblDefaultPosition |
1 - Right Down |
dblRightDown |
2 - Right Up |
dblRightUp |
3 - Left Down |
dblLeftDown |
4 - Left Up |
dblLeftUp |
It is only meaningful when the ComboStyle property is set to 0 - Dropdown Combo or 2 - Dropdown List.
If the DropdownPosition property is set to 0 - Default Position, the drop-down list will open to the right and down. If there is not enough room at the bottom of the screen, the window will open upwards. If there is not enough room at the right edge of the screen, the window will open towards the left.
The other values will force the behavior of the drop-down list regardless of whether there is enough room at the edge of the screen or not, if you also specify the DropdownWidth property.
See Also