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

TCustomComboBox.DropDownCount

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

Declaration

Source position: stdctrls.pp line 432

public property TCustomComboBox.DropDownCount : Integer
  read FDropDownCount
  write SetDropDownCount
  default 8;

Description

DropDownCount is an Integer property which specifies the maximum number of values from Items that can be displayed in the drop-down list for the control. Setting a new value for the property causes the widgetset class to be notified using its SetDropDownCount method when a handle has been allocated for the control.

DropDownCount is used (along with the item count and ItemHeight) in the AdjustDropDown method to set the minimum dimensions for the drop-down list.

The default value for the property is 8.

Remark: For the macOS Carbon and GTK2 widgetsets, changing the value in DropDownCount does not affect the control. This attribute is determined by the native control.

See also

TCustomComboBox.Items

  

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

TCustomComboBox.ItemHeight

  

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

TCustomComboBox.GetItemCount

  

Returns the number of items defined in the drop-down list.

TCustomComboBox.AdjustDropDown

  

Adjusts the extent for the drop-down list.


Version 3.2 Generated 2024-02-25 Home