TcxColorComboBoxItem Class
Represents an item in the color combo box controls.
Declaration
TcxColorComboBoxItem = class(
TCollectionItem
)
Remarks
All items displayed by the color combo boxes are stored in its Properties.Items property. This property is represented by a TcxColorComboBoxItems collection and contains a TcxColorComboBoxItem object for each item. These objects are also used to represent items in the most recently used list of the color combo box. This list can be accessed via the editor’s Properties.MRUColors property.
The TcxColorComboBoxItem class introduces two properties specifying item settings. The Color property specifies the color represented by the item. The Description property provides the explanatory text displayed for the color. Note that you can disable the text display using the color combo’s Properties.ShowDescription property.
You can choose between two methods of populating the color combo with items:
Add your own items and adjust their properties as needed.
Load a predefined color set into the combo.
Refer to the TcxColorComboBoxItems class description for details on how to manage items and change their settings.