[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomComboBox.AdjustDropDown

Adjusts the extent for the drop-down list.

Declaration

Source position: stdctrls.pp line 363

protected procedure TCustomComboBox.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

TCustomComboBox.ItemWidth

  

The minimum width of the items in the drop-down list.

TCustomComboBox.ItemHeight

  

The default height of an item in the drop-down for the control.

TCustomComboBox.Items

  

The list of items displayed in the combo-box control.

TCustomComboBox.DropDownCount

  

The maximum number of Items visible in the drop-down list for the control.

TCustomComboBox.DropDown

  

Signals the OnDropDown event handler.


Version 3.2 Generated 2024-02-25 Home