System.UITypes.TColorRec
Delphi
TColorRec = record
C++
struct DECLSPEC_DRECORD TColorRec
{
public:
static const unsigned SystemColor = unsigned(0xff000000);
static const System::Int8 cSCROLLBAR = System::Int8(0x0);
static const System::Int8 cBACKGROUND = System::Int8(0x1);
static const System::Int8 cACTIVECAPTION = System::Int8(0x2);
static const System::Int8 cINACTIVECAPTION = System::Int8(0x3);
static const System::Int8 cMENU = System::Int8(0x4);
static const System::Int8 cWINDOW = System::Int8(0x5);
static const System::Int8 cWINDOWFRAME = System::Int8(0x6);
static const System::Int8 cMENUTEXT = System::Int8(0x7);
static const System::Int8 cWINDOWTEXT = System::Int8(0x8);
static const System::Int8 cCAPTIONTEXT = System::Int8(0x9);
static const System::Int8 cACTIVEBORDER = System::Int8(0xa);
static const System::Int8 cINACTIVEBORDER = System::Int8(0xb);
static const System::Int8 cAPPWORKSPACE = System::Int8(0xc);
static const System::Int8 cHIGHLIGHT = System::Int8(0xd);
static const System::Int8 cHIGHLIGHTTEXT = System::Int8(0xe);
static const System::Int8 cBTNFACE = System::Int8(0xf);
static const System::Int8 cBTNSHADOW = System::Int8(0x10);
static const System::Int8 cGRAYTEXT = System::Int8(0x11);
static const System::Int8 cBTNTEXT = System::Int8(0x12);
static const System::Int8 cINACTIVECAPTIONTEXT = System::Int8(0x13);
static const System::Int8 cBTNHIGHLIGHT = System::Int8(0x14);
static const System::Int8 c3DDKSHADOW = System::Int8(0x15);
static const System::Int8 c3DLIGHT = System::Int8(0x16);
static const System::Int8 cINFOTEXT = System::Int8(0x17);
static const System::Int8 cINFOBK = System::Int8(0x18);
static const System::Int8 cHOTLIGHT = System::Int8(0x1a);
static const System::Int8 cGRADIENTACTIVECAPTION = System::Int8(0x1b);
static const System::Int8 cGRADIENTINACTIVECAPTION = System::Int8(0x1c);
static const System::Int8 cMENUHILIGHT = System::Int8(0x1d);
static const System::Int8 cMENUBAR = System::Int8(0x1e);
static const System::Int8 cENDCOLORS = System::Int8(0x1e);
static const System::Int8 cDESKTOP = System::Int8(0x1);
static const System::Int8 c3DFACE = System::Int8(0xf);
static const System::Int8 c3DSHADOW = System::Int8(0x10);
static const System::Int8 c3DHIGHLIGHT = System::Int8(0x14);
static const System::Int8 c3DHILIGHT = System::Int8(0x14);
static const System::Int8 cBTNHILIGHT = System::Int8(0x14);
static const TColor SysScrollBar = TColor(-16777216);
static const TColor SysBackground = TColor(-16777215);
static const TColor SysActiveCaption = TColor(-16777214);
static const TColor SysInactiveCaption = TColor(-16777213);
static const TColor SysMenu = TColor(-16777212);
static const TColor SysWindow = TColor(-16777211);
static const TColor SysWindowFrame = TColor(-16777210);
static const TColor SysMenuText = TColor(-16777209);
static const TColor SysWindowText = TColor(-16777208);
static const TColor SysCaptionText = TColor(-16777207);
static const TColor SysActiveBorder = TColor(-16777206);
static const TColor SysInactiveBorder = TColor(-16777205);
static const TColor SysAppWorkSpace = TColor(-16777204);
static const TColor SysHighlight = TColor(-16777203);
static const TColor SysHighlightText = TColor(-16777202);
static const TColor SysBtnFace = TColor(-16777201);
static const TColor SysBtnShadow = TColor(-16777200);
static const TColor SysGrayText = TColor(-16777199);
static const TColor SysBtnText = TColor(-16777198);
static const TColor SysInactiveCaptionText = TColor(-16777197);
static const TColor SysBtnHighlight = TColor(-16777196);
static const TColor Sys3DDkShadow = TColor(-16777195);
static const TColor Sys3DLight = TColor(-16777194);
static const TColor SysInfoText = TColor(-16777193);
static const TColor SysInfoBk = TColor(-16777192);
static const TColor SysHotLight = TColor(-16777190);
static const TColor SysGradientActiveCaption = TColor(-16777189);
static const TColor SysGradientInactiveCaption = TColor(-16777188);
static const TColor SysMenuHighlight = TColor(-16777187);
static const TColor SysMenuBar = TColor(-16777186);
static const TColor SysNone = TColor(536870911);
static const TColor SysDefault = TColor(536870912);
static const TColor Aliceblue = TColor(16775408);
static const TColor Antiquewhite = TColor(14150650);
static const TColor Aqua = TColor(16776960);
static const TColor Aquamarine = TColor(13959039);
static const TColor Azure = TColor(16777200);
static const TColor Beige = TColor(14480885);
static const TColor Bisque = TColor(12903679);
static const TColor Black = TColor(0);
static const TColor Blanchedalmond = TColor(13495295);
static const TColor Blue = TColor(16711680);
static const TColor Blueviolet = TColor(14822282);
static const TColor Brown = TColor(2763429);
static const TColor Burlywood = TColor(8894686);
static const TColor Cadetblue = TColor(10526303);
static const TColor Chartreuse = TColor(65407);
static const TColor Chocolate = TColor(1993170);
static const TColor Coral = TColor(5275647);
static const TColor Cornflowerblue = TColor(15570276);
static const TColor Cornsilk = TColor(14481663);
static const TColor Crimson = TColor(3937500);
static const TColor Cyan = TColor(16776960);
static const TColor Darkblue = TColor(9109504);
static const TColor Darkcyan = TColor(9145088);
static const TColor Darkgoldenrod = TColor(755384);
static const TColor Darkgray = TColor(11119017);
static const TColor Darkgreen = TColor(25600);
static const TColor Darkgrey = TColor(11119017);
static const TColor Darkkhaki = TColor(7059389);
static const TColor Darkmagenta = TColor(9109643);
static const TColor Darkolivegreen = TColor(3107669);
static const TColor Darkorange = TColor(36095);
static const TColor Darkorchid = TColor(13382297);
static const TColor Darkred = TColor(139);
static const TColor Darksalmon = TColor(8034025);
static const TColor Darkseagreen = TColor(9419919);
static const TColor Darkslateblue = TColor(9125192);
static const TColor Darkslategray = TColor(5197615);
static const TColor Darkslategrey = TColor(5197615);
static const TColor Darkturquoise = TColor(13749760);
static const TColor Darkviolet = TColor(13828244);
static const TColor Deeppink = TColor(9639167);
static const TColor Deepskyblue = TColor(16760576);
static const TColor Dimgray = TColor(6908265);
static const TColor Dimgrey = TColor(6908265);
static const TColor Dodgerblue = TColor(16748574);
static const TColor Firebrick = TColor(2237106);
static const TColor Floralwhite = TColor(15792895);
static const TColor Forestgreen = TColor(2263842);
static const TColor Fuchsia = TColor(16711935);
static const TColor Gainsboro = TColor(14474460);
static const TColor Ghostwhite = TColor(16775416);
static const TColor Gold = TColor(55295);
static const TColor Goldenrod = TColor(2139610);
static const TColor Gray = TColor(8421504);
static const TColor Green = TColor(32768);
static const TColor Greenyellow = TColor(3145645);
static const TColor Grey = TColor(8421504);
static const TColor Honeydew = TColor(15794160);
static const TColor Hotpink = TColor(11823615);
static const TColor Indianred = TColor(6053069);
static const TColor Indigo = TColor(8519755);
static const TColor Ivory = TColor(15794175);
static const TColor Khaki = TColor(9234160);
static const TColor Lavender = TColor(16443110);
static const TColor Lavenderblush = TColor(16118015);
static const TColor Lawngreen = TColor(64636);
static const TColor Lemonchiffon = TColor(13499135);
static const TColor Lightblue = TColor(15128749);
static const TColor Lightcoral = TColor(8421616);
static const TColor Lightcyan = TColor(16777184);
static const TColor Lightgoldenrodyellow = TColor(13826810);
static const TColor Lightgray = TColor(13882323);
static const TColor Lightgreen = TColor(9498256);
static const TColor Lightgrey = TColor(13882323);
static const TColor Lightpink = TColor(12695295);
static const TColor Lightsalmon = TColor(8036607);
static const TColor Lightseagreen = TColor(11186720);
static const TColor Lightskyblue = TColor(16436871);
static const TColor Lightslategray = TColor(10061943);
static const TColor Lightslategrey = TColor(10061943);
static const TColor Lightsteelblue = TColor(14599344);
static const TColor Lightyellow = TColor(14745599);
static const TColor LtGray = TColor(12632256);
static const TColor MedGray = TColor(10789024);
static const TColor DkGray = TColor(8421504);
static const TColor MoneyGreen = TColor(12639424);
static const TColor LegacySkyBlue = TColor(15780518);
static const TColor Cream = TColor(15793151);
static const TColor Lime = TColor(65280);
static const TColor Limegreen = TColor(3329330);
static const TColor Linen = TColor(15134970);
static const TColor Magenta = TColor(16711935);
static const TColor Maroon = TColor(128);
static const TColor Mediumaquamarine = TColor(11193702);
static const TColor Mediumblue = TColor(13434880);
static const TColor Mediumorchid = TColor(13850042);
static const TColor Mediumpurple = TColor(14381203);
static const TColor Mediumseagreen = TColor(7451452);
static const TColor Mediumslateblue = TColor(15624315);
static const TColor Mediumspringgreen = TColor(10156544);
static const TColor Mediumturquoise = TColor(13422920);
static const TColor Mediumvioletred = TColor(8721863);
static const TColor Midnightblue = TColor(7346457);
static const TColor Mintcream = TColor(16449525);
static const TColor Mistyrose = TColor(14804223);
static const TColor Moccasin = TColor(11920639);
static const TColor Navajowhite = TColor(11394815);
static const TColor Navy = TColor(8388608);
static const TColor Oldlace = TColor(15136253);
static const TColor Olive = TColor(32896);
static const TColor Olivedrab = TColor(2330219);
static const TColor Orange = TColor(42495);
static const TColor Orangered = TColor(17919);
static const TColor Orchid = TColor(14053594);
static const TColor Palegoldenrod = TColor(11200750);
static const TColor Palegreen = TColor(10025880);
static const TColor Paleturquoise = TColor(15658671);
static const TColor Palevioletred = TColor(9662683);
static const TColor Papayawhip = TColor(14020607);
static const TColor Peachpuff = TColor(12180223);
static const TColor Peru = TColor(4163021);
static const TColor Pink = TColor(13353215);
static const TColor Plum = TColor(14524637);
static const TColor Powderblue = TColor(15130800);
static const TColor Purple = TColor(8388736);
static const TColor Red = TColor(255);
static const TColor Rosybrown = TColor(9408444);
static const TColor Royalblue = TColor(14772545);
static const TColor Saddlebrown = TColor(1262987);
static const TColor Salmon = TColor(7504122);
static const TColor Sandybrown = TColor(6333684);
static const TColor Seagreen = TColor(5737262);
static const TColor Seashell = TColor(15660543);
static const TColor Sienna = TColor(2970272);
static const TColor Silver = TColor(12632256);
static const TColor Skyblue = TColor(15453831);
static const TColor Slateblue = TColor(13458026);
static const TColor Slategray = TColor(9470064);
static const TColor Slategrey = TColor(9470064);
static const TColor Snow = TColor(16448255);
static const TColor Springgreen = TColor(8388352);
static const TColor Steelblue = TColor(11829830);
static const TColor Tan = TColor(9221330);
static const TColor Teal = TColor(8421376);
static const TColor Thistle = TColor(14204888);
static const TColor Tomato = TColor(4678655);
static const TColor Turquoise = TColor(13688896);
static const TColor Violet = TColor(15631086);
static const TColor Wheat = TColor(11788021);
static const TColor White = TColor(16777215);
static const TColor Whitesmoke = TColor(16119285);
static const TColor Yellow = TColor(65535);
static const TColor Yellowgreen = TColor(3329434);
static const TColor Null = TColor(0);
static int __fastcall (*ColorToRGB)(TColor Color);
public:
union
{
struct
{
System::Byte R;
System::Byte G;
System::Byte B;
System::Byte A;
};
struct
{
System::Word HiWord;
System::Word LoWord;
};
struct
{
TColor Color;
};
};
};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
record struct |
public | System.UITypes.pas System.UITypes.hpp |
System.UITypes | System.UITypes |
Description
TColorRec fournit un accès à l'enregistrement des canaux de couleurs.
Utilisez les constantes de TColorRec afin d'obtenir l'accès à l'enregistrement des canaux de couleurs pour le type TColor.
Le tableau Couleurs montre les constantes définissant les couleurs réelles. Ces constantes sont mappées directement sur la couleur correspondante la plus proche dans la palette système (par exemple, la constante Blue est mappée sur bleu).
Le tableau Couleurs système montre les constantes définissant les couleurs système. Ces constantes sont maintenant uniquement supportées sous le framework VCL. Pour obtenir les couleurs RVB pour ces constantes, utilisez le champ ColorToRGB de cet enregistrement. Pour utiliser ce pointeur, une fonction réelle fournissant une telle conversion doit être spécifiée. Nous fournissons maintenant la fonction Vcl.Graphics.ColorToRGB -- sous le framework VCL -- qui fournit la conversion d'une valeur TColor en une représentation RVB de la couleur. Sous le framework FireMonkey vous pouvez fournir vous-même une telle fonction.
Couleurs
Constantes TColorRec | Couleurs | A B V R |
---|---|---|
|
Bleu Alice |
00 FF F8 F0 |
|
Blanc antique |
00 D7 EB FA |
|
Aqua |
00 FF FF 00 |
|
Aquamarine |
00 D4 FF 7F |
|
Azure |
00 FF FF F0 |
|
Beige |
00 DC F5 F5 |
|
Bisque |
00 C4 E4 FF |
|
Noir |
00 00 00 00 |
|
Amande blanche |
00 CD EB FF |
|
Bleu |
00 FF 00 00 |
|
Bleu violet |
00 E2 2B 8A |
|
Marron |
00 2A 2A A5 |
|
Bois brut |
00 87 B8 DE |
|
Bleu uniforme |
00 A0 9E 5F |
|
Chartreuse |
00 00 FF 7F |
|
Chocolat |
00 1E 69 D2 |
|
Corail |
00 50 7F FF |
|
Bleu fleur de maïs |
00 ED 95 64 |
|
Jaune maïs doux |
00 DC F8 FF |
|
Pourpre |
00 3C 14 DC |
|
Cyan |
00 FF FF 00 |
|
Bleu foncé |
00 8B 00 00 |
|
Cyan foncé |
00 8B 8B 00 |
|
Jaune paille foncé |
00 0B 86 B8 |
|
Gris foncé |
00 A9 A9 A9 |
|
Vert foncé |
00 00 64 00 |
|
Gris foncé |
00 A9 A9 A9 |
|
Kaki foncé |
00 6B B7 BD |
|
Magenta foncé |
00 8B 00 8B |
|
Vert olive foncé |
00 2F 6B 55 |
|
Orange foncé |
00 00 8C FF |
|
Orchidée foncé |
00 CC 32 99 |
|
Rouge foncé |
00 00 00 8B |
|
Saumon foncé |
00 7A 96 E9 |
|
Vert océan foncé |
00 8F BC 8F |
|
Bleu ardoise foncé |
00 8B 3D 48 |
|
Gris ardoise foncé |
00 4F 4F 2F |
|
Gris ardoise foncé |
00 4F 4F 2F |
|
Turquoise foncé |
00 D1 CE 00 |
|
Parme foncé |
00 D3 00 94 |
|
Rose profond |
00 93 14 FF |
|
Bleu ciel profond |
00 FF BF 00 |
|
Gris pâle |
00 69 69 69 |
|
Gris pâle |
00 69 69 69 |
|
Bleuté |
00 FF 90 1E |
|
Rouge brique |
00 22 22 B2 |
|
Blanc floral |
00 F0 FA FF |
|
Vert forêt |
00 22 8B 22 |
|
Fuchsia |
00 FF 00 FF |
|
Gainsboro |
00 DC DC DC |
|
Blanc spectral |
00 FF F8 F8 |
|
Or |
00 00 D7 FF |
|
Verge d'or |
00 20 A5 DA |
|
Gris |
00 80 80 80 |
|
Vert |
00 00 80 00 |
|
Jaune-vert |
00 2F FF AD |
|
Gris |
00 80 80 80 |
|
Miellé |
00 F0 FF F0 |
|
Rose chaud |
00 B4 69 FF |
|
Rouge indien |
00 5C 5C CD |
|
Indigo |
00 82 00 4B |
|
Ivoire |
00 F0 FF FF |
|
Kaki |
00 8C E6 F0 |
|
Lavande |
00 FA E6 E6 |
|
Lavande rougeâtre |
00 F5 F0 FF |
|
Vert prairie |
00 00 FC 7C |
|
Jaune chiffonné |
00 CD FA FF |
|
Bleu clair |
00 E6 D8 AD |
|
Corail clair |
00 80 80 F0 |
|
Cyan clair |
00 FF FF E0 |
|
Jaune paille clair |
00 D2 FA FA |
|
Gris clair |
00 D3 D3 D3 |
|
Vert clair |
00 90 EE 90 |
|
Gris clair |
00 D3 D3 D3 |
|
Rose clair |
00 C1 B6 FF |
|
Saumon clair |
00 7A A0 FF |
|
Vert océan clair |
00 AA B2 20 |
|
Bleu ciel clair |
00 FA CE 87 |
|
Gris ardoise clair |
00 99 88 77 |
|
Gris ardoise clair |
00 99 88 77 |
|
Bleu acier clair |
00 DE C4 B0 |
|
Jaune clair |
00 E0 FF FF |
|
Gris léger |
00 C0 C0 C0 |
|
Gris moyen |
00 A4 A0 A0 |
|
Gris sombre |
00 80 80 80 |
|
Vert argenté |
00 C0 DC C0 |
|
Bleu ciel |
00 F0 CA A6 |
|
Crème |
00 F0 FB FF |
|
Citron vert |
00 00 FF 00 |
|
Citron vert foncé |
00 32 CD 32 |
|
Lin |
00 E6 F0 FA |
|
Magenta |
00 FF 00 FF |
|
Rouge foncé |
00 00 00 80 |
|
Aigue-marine moyen |
00 AA CD 66 |
|
Bleu moyen |
00 CD 00 00 |
|
Orchidée moyen |
00 D3 55 BA |
|
Pourpre moyen |
00 DB 70 93 |
|
Vert océan moyen |
00 71 B3 3C |
|
Bleu ardoise moyen |
00 EE 68 7B |
|
Vert printemps moyen |
00 9A FA 00 |
|
Turquoise moyen |
00 CC D1 48 |
|
Rouge violacé moyen |
00 85 15 C7 |
|
Bleu nuit |
00 70 19 19 |
|
Blanc mentholé |
00 FA FF F5 |
|
Rose voilé |
00 E1 E4 FF |
|
Beige mocassin |
00 B5 E4 FF |
|
Blanc navarro |
00 AD DE FF |
|
Bleu foncé |
00 80 00 00 |
|
Vieux blanc |
00 E6 F5 FD |
|
Olive |
00 00 80 80 |
|
Vert olive terne |
00 23 8E 6B |
|
Orange |
00 00 A5 FF |
|
Rouge orangé |
00 00 45 FF |
|
Orchidée |
00 D6 70 DA |
|
Jaune paille pâle |
00 AA E8 EE |
|
Vert pâle |
00 98 FB 98 |
|
Turquoise pâle |
00 EE EE AF |
|
Rouge violacé pâle |
00 93 70 DB |
|
Papaye délavé |
00 D5 EF FF |
|
Pêche passé |
00 B9 DA FF |
|
Pérou |
00 3F 85 CD |
|
Rose |
00 CB C0 FF |
|
Prune |
00 DD A0 DD |
|
Bleu poudré |
00 E6 E0 B0 |
|
Violet |
00 80 00 80 |
|
Rouge |
00 00 00 FF |
|
Bois de rose |
00 8F 8F BC |
|
Bleu roi |
00 E1 69 41 |
|
Cuir |
00 13 45 8B |
|
Saumon |
00 72 80 FA |
|
Brun sable |
00 60 A4 F4 |
|
Vert océan |
00 57 8B 2E |
|
Coquillage |
00 EE F5 FF |
|
Sienne |
00 2D 52 A0 |
|
Argent |
00 C0 C0 C0 |
|
Bleu ciel |
00 EB CE 87 |
|
Bleu ardoise |
00 CD 5A 6A |
|
Gris ardoise |
00 90 80 70 |
|
Gris ardoise |
00 90 80 70 |
|
Neige |
00 FA FA FF |
|
Vert printemps |
00 7F FF 00 |
|
Bleu acier |
00 B4 82 46 |
|
Brun tanné |
00 8C B4 D2 |
|
Bleu-vert |
00 80 80 00 |
|
Chardon |
00 D8 BF D8 |
|
Tomate |
00 47 63 FF |
|
Turquoise |
00 D0 E0 40 |
|
Violet |
00 EE 82 EE |
|
Blé |
00 B3 DE F5 |
|
Blanc |
00 FF FF FF |
|
Blanc fumée |
00 F5 F5 F5 |
|
Jaune |
00 00 FF FF |
|
Vert jaunâtre |
00 32 CD 9A |
|
Null |
00 00 00 00 |
Couleurs système
Constantes TColorRec | Valeur entière | Couleurs par défaut sous Windows 7 |
---|---|---|
|
|
La couleur de l'arrière-plan d'une barre de défilement. |
|
|
La couleur d'arrière-plan en cours du bureau. |
|
|
La couleur d'arrière-plan de la barre de titre de la fenêtre active. |
|
|
La couleur d'arrière-plan de la barre de titre d'une fenêtre inactive. |
|
|
La couleur d'arrière-plan en cours des menus. |
|
|
La couleur en cours de l'arrière-plan dans la zone client de Windows. |
|
|
La couleur en cours d'un cadre de fenêtre. |
|
|
La couleur en cours du texte d'un menu. |
|
|
La couleur en cours du texte dans la zone client d'une fenêtre. |
|
|
La couleur en cours du texte sur la barre de titre de la fenêtre active. |
|
|
La couleur en cours de la bordure de la fenêtre active. |
|
|
La couleur en cours de la bordure d'une fenêtre inactive. |
|
|
La couleur en cours de l'espace de travail de l'application. |
|
|
La couleur en cours de l'arrière-plan des éléments sélectionnés. |
|
|
La couleur en cours du texte des éléments sélectionnés. |
|
|
La couleur en cours de la face d'un bouton. |
|
|
La couleur en cours de l'ombre d'un bouton. |
|
|
La couleur en cours d'un texte estompé. |
|
|
La couleur en cours du texte d'un bouton. |
|
|
La couleur en cours du texte dans une barre de titre d'une fenêtre inactive. |
|
|
La couleur en cours de la surbrillance sur un bouton. |
|
|
La couleur en cours de l'ombre foncée pour les éléments d'affichage en trois dimensions. |
|
|
La couleur en cours de la couleur claire pour les éléments d'affichage en trois dimensions (pour les côtés face à la source de lumière). |
|
|
La couleur en cours du texte d'une info-bulle. |
|
|
La couleur d'arrière-plan en cours des contrôles infos-bulles. |
|
|
La couleur en cours utilisée pour désigner un élément suivi attentivement. |
|
|
La couleur la plus claire en cours dans le dégradé de couleur de la barre de titre de la fenêtre active. Voir SysActiveCaption pour la couleur la plus foncée dans le dégradé de couleur de la barre de titre de la fenêtre active. |
|
|
La couleur la plus claire en cours dans le dégradé de couleur de la barre de titre d'une fenêtre inactive. Voir SysInactiveCaption pour la couleur la plus foncée dans le dégradé de couleur de la barre de titre d'une fenêtre inactive. |
|
|
La couleur en cours utilisée pour mettre en surbrillance les éléments de menu quand le menu apparaît sous la forme d'un menu plat. |
|
|
La couleur en cours de l'arrière-plan d'une barre de menu. |
|
|
L'octet |
|
|
Ne pas utiliser de couleur pour remplir l'arrière-plan d'un élément. |
|
|
La couleur par défaut pour remplir le type particulier des éléments. |