Vcl.ExtCtrls.TColorBoxStyles

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

TColorBoxStyles = (cbStandardColors, // first sixteen RGBI colors
cbExtendedColors, // four additional reserved colors
cbSystemColors,   // system managed/defined colors
cbIncludeNone,    // include clNone color, must be used with cbSystemColors
cbIncludeDefault, // include clDefault color, must be used with cbSystemColors
cbCustomColor,    // first color is customizable
cbPrettyNames,
cbCustomColors);  // All colors are custom colors

C++

enum DECLSPEC_DENUM TColorBoxStyles : unsigned char { cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbIncludeDefault, cbCustomColor, cbPrettyNames, cbCustomColors };

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
enum public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls


Beschreibung

TColorBoxStyles und TColorBoxStyle geben an, wie die Auswahlmöglichkeiten in einem Farbfeld angezeigt werden.

Die folgende Tabelle enthält die möglichen Werte von TColorBoxStyle:

Stil Bedeutung

cbStandardColors

Das Kombinationsfeld enthält die ersten 16 Farbkonstanten der Unit Graphics. Diese Konstanten (z.B. clRed oder clBlack) stehen für unveränderliche RGB-Werte.

cbExtendedColors

Das Kombinationsfeld enthält die Farben clMoneyGreen, clSkyBlue, clCream und clMedGray.

cbSystemColors

Das Kombinationsfeld enthält die symbolischen Farbkonstanten der Windows-Systemsteuerung.

cbIncludeNone

Das Kombinationsfeld enthält den Wert clNone. Diese Option ist nur wirksam, wenn Style auch cbSystemColors enthält.

cbIncludeDefault

Das Kombinationsfeld enthält den Wert clNone. Diese Option ist nur wirksam, wenn Style auch cbSystemColors enthält.

cbCustomColor

Der erste Eintrag im Kombinationsfeld steht für eine benutzerdefinierte Farbe. Wenn der Benutzer diesen Eintrag wählt, kann er in einem Farbauswahldialog selbst eine Farbe definieren.

cbPrettyNames

Das Kombinationsfeld enthält die Farben als Namen und nicht als Farbkonstanten (z.B. 'Black' anstatt 'clBlack').

cbExtendedColors

Das Kombinationsfeld enthält eine benutzerdefinierte Farbliste. Mit dem Ereignis OnGetColors können Sie die Farbliste füllen (der angezeigte Name und die entsprechende Farbe).

Hinweis: Mit dem Wert cbCustomColor können Sie nur eine benutzerdefinierte Farbe von dem geöffneten ColorDialog auswählen.
Hinweis: Im OnGetColors-Ereignis können Sie der Kombinationsfeldliste so viele Farben wie gewünscht hinzufügen.

Siehe auch