System.UITypes.TColor
Delphi
TColor = -$7FFFFFFF-1..$7FFFFFFF;
C++
enum DECLSPEC_DENUM TColor : int {clMin=-0x7fffffff-1, clMax=0x7fffffff};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
type enum |
public | System.UITypes.pas System.UITypes.hpp |
System.UITypes | System.UITypes |
Description
TColor is used to specify the color of a control.
TColor is used to specify the color of a control. It is used by the Color property of many components and by a number of other properties that specify color values.
The TColorRec type defines useful constants identifying different types of colors for TColor. Some of these constants map directly to the closest matching color in the system palette (for example, the Blue
constant maps to the blue color). You can see the actual colors themselves in the Colors table in TColorRec.
You can specify TColor as a specific 4-byte hexadecimal number instead of using the constants defined in the TColorRec type:
- If the highest-order byte is zero, then the low three bytes represent RGB color intensities for blue, green, and red, respectively. The value
$00FF0000
(Delphi) or0x00FF0000
(C++) represents full-intensity, pure blue,$0000FF00
(Delphi) or0x0000FF00
(C++) is pure green, and$000000FF
(Delphi) or0x000000FF
(C++) is pure red.$00000000
(Delphi) or0x00000000
(C++) is black and$00FFFFFF
(Delphi) or0x00FFFFFF
(C++) is white. - If the highest-order byte is
$FF
(theSystemColor
constant), then the low three bytes represent Windows system colors likeSysWindow
orSysMenu
. These constants for system colors work only under Windows platforms.
See Also
- FMX.Ani.TColorAnimation
- FMX.Ani.TColorKeyAnimation
- System.UITypes.PColor
- System.UITypes.PColorRec
- System.UITypes.TColorRec
- System.UITypes.TAlphaColorRec
- Color Constants
- Colors in FireMonkey