RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdCtrls.TComboBoxStyle Enumeration

TComboBoxStyle is the type for the Style property of combo box controls that are defined in the StdCtrls unit.

Pascal
TComboBoxStyle = (
  csDropDown,
  csSimple,
  csDropDownList,
  csOwnerDrawFixed,
  csOwnerDrawVariable
);
C++
enum TComboBoxStyle {
  csDropDown,
  csSimple,
  csDropDownList,
  csOwnerDrawFixed,
  csOwnerDrawVariable
};

These are the values in the TComboBoxStyle type:

Value 
Meaning 
csDropDown  
Creates a drop-down list with an edit box for manually entered text. All items are strings of the same height.  
csSimple  
Creates an edit box with a fixed list (list box) underneath. The length of the list is determined by the Height of the combo box.  
csDropDownList  
Creates a drop-down list with no edit box; the user cannot enter text manually. All items are strings of the same height.  
csOwnerDrawFixed  
Creates an owner-draw drop-down list with no edit box. Each item in the list is the height specified by the ItemHeight property.  
csOwnerDrawVariable  
Creates an owner-draw drop-down list with no edit box. List items can have varying heights.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!