Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.AdjustDropDown procedure

Member of TCustomComboBoxprotectedIn unit StdCtrls

Adjusts the extent for the drop-down list.

Declaration

pascal
procedure AdjustDropDown; virtual

Description

AdjustDropDown is used to adjust the bounds for the drop-list list in the control. AdjustDropDown is called when the drop-list becomes visible, and when the value in the ItemWidth property is changed.

AdjustDropDown does not perform any actions in the method if a handle has not been assigned for the control.

AdjustDropDown ensures that the value in DropDownCount is applied (when needed) to the drop-down list for the control. The minimum height and width for the list is calculated using the ItemWidth and ItemHeight properties. The dimensions are passed to the widgetset class using the SetComboMinDropDownSize routine in the LCL interface.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.