Vcl.StdCtrls.TCustomComboBox.Style
Delphi
property Style: TComboBoxStyle read FStyle write SetStyle default csDropDown;
C++
__property TComboBoxStyle Style = {read=FStyle, write=SetStyle, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomComboBox |
Description
Determines the display style of the combo box.
Set Style to specify how the list and edit region of the combo box should appear.
When Style is csOwnerDrawFixed
or csOwnerDrawVariable
, the OnDrawItem event occurs when the list items need to be drawn. If Style is csOwnerDrawVariable, an OnMeasureItem event occurs as well.
The possible values of TComboBoxStyle are:
Value | Meaning |
---|---|
|
Defines a drop-down list with an edit box for manually entered text. All items are strings of the same height. |
|
Defines an edit box with a fixed list (list box) below it. The length of the list is determined by the Height of the combo box. |
|
Defines a drop-down list with no edit box; the user cannot enter text manually. All items are strings of the same height. |
|
Defines an owner-drawn drop-down list with no edit box. Each item in the list has the height specified by the ItemHeight property. |
|
Defines an owner-draw drop-down list with no edit box. List items can have varying heights. |