Vcl.ExtCtrls.TColorBoxStyle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TColorBoxStyle = set of TColorBoxStyles;

C++

typedef System::Set<TColorBoxStyles, TColorBoxStyles::cbStandardColors, TColorBoxStyles::cbCustomColors> TColorBoxStyle;

Properties

Type Visibility Source Unit Parent
set
typedef
public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls

Description

TColorBoxStyle and TColorBoxStyles specify how a color box control displays its selections.

TColorBoxStyle is a set of TColorBoxStyles values.

The TColorBox or the TColorListBox lists all the colors grouped in each TColorBoxStyles that have been set.


The possible values of TColorBoxStyles are:


Style Meaning when included

cbStandardColors

The color box lists the first 16 color constants from the Graphics unit. These are the constants such as clRed or clBlack, that represent fixed RGB values.

cbExtendedColors

The color box includes clMoneyGreen, clSkyBlue, clCream, and clMedGray.

cbSystemColors

The color box includes the symbolic color constants that reflect the values specified in the Windows control panel.

cbIncludeNone

The color box includes clNone. This option only has an effect if Style includes cbSystemColors.

cbIncludeDefault

The color box includes clNone. This option only has an effect if Style includes cbSystemColors.

cbCustomColor

The first entry in the color box represents a custom color. When the user selects the Custom entry, the color box displays the Color selection dialog, where the user can specify a custom color.

cbPrettyNames

The color box lists the names as words rather than as the color constant strings. (for example 'Black' rather than 'clBlack').

cbCustomColors

The color box lists a customized list of colors. Use the OnGetColors event to populate the list of colors.


See Also