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

TCustomComboBox.Style

Controls the appearance and behavior for the combo-box.

Declaration

Source position: stdctrls.pp line 440

public property TCustomComboBox.Style : TComboBoxStyle
  read FStyle
  write SetStyle
  default csDropDown;

Description

Style is quite Windows-centric, reflecting the evolution of combo-box styles. The basic styles are:

csSimple
Displays an edit box with an attached list (not a drop-down list).
csDropDown
Displays an edit box with a drop-down list.
csDropDownList
Values cannot be entered by the user in the edit box, only selected from the drop-down list.

Owner-drawn drop-down lists have been added, with the values:

csOwnerDrawFixed
All items in the drop-down list are drawn with the same height.
csOwnerDrawVariable
Each item in the list can have a different height.
Remark: For the macOS Carbon widgetset, the following style values are not recognized: csSimple, csOwnerDrawFixed and csOwnerDrawVariable. They are not supported in the native control.

Version 3.2 Generated 2024-02-25 Home