RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TColorBox Class

TColorBox represents a combo box that lets users select a color.

Pascal
TColorBox = class(TCustomColorBox);
C++
class TColorBox : public TCustomColorBox;

Use TColorBox to provide the user with a drop-down combo box from which to select a color. Use the Style property to specify which colors the color box should list. Each color is displayed next to a small square that is drawn in the corresponding color. 

Use the Selected property to access the color that the user selects. The Colors property provides access to the entire list of colors, while the ColorNames property lists their names. 

 

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