RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TColorListBox Class

TColorListBox represents a list box that lets users select a color.

Pascal
TColorListBox = class(TCustomColorListBox);
C++
class TColorListBox : public TCustomColorListBox;

TCustomColorBox is the base class for TColorListBox and for combo boxes that display a list of colors. The list box displays a list of all the colors for which the Graphics unit defines a constant. For a list of these colors, see TColor. Each color is displayed next to a small square that is drawn in the corresponding color. 

Do not use TCustomColorBox in applications. It is intended to act as a base class for color selection controls. Rather, to add a list box control with selectable colors, use the TColorListBox component. To use a drop-down combo box that lets users select a color, use the TColorBox component, which appears on the Additional page of the component palette. 

 

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