System.UITypes.TColorRec

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

  TColorRec = record
  const
    SystemColor = $FF000000;
    cSCROLLBAR = 0;
    cBACKGROUND = 1;
    cACTIVECAPTION = 2;
    cINACTIVECAPTION = 3;
    cMENU = 4;
    cWINDOW = 5;
    cWINDOWFRAME = 6;
    cMENUTEXT = 7;
    cWINDOWTEXT = 8;
    cCAPTIONTEXT = 9;
    cACTIVEBORDER = 10;
    cINACTIVEBORDER = 11;
    cAPPWORKSPACE = 12;
    cHIGHLIGHT = 13;
    cHIGHLIGHTTEXT = 14;
    cBTNFACE = 15;
    cBTNSHADOW = $10;
    cGRAYTEXT = 17;
    cBTNTEXT = 18;
    cINACTIVECAPTIONTEXT = 19;
    cBTNHIGHLIGHT = 20;
    c3DDKSHADOW = 21;
    c3DLIGHT = 22;
    cINFOTEXT = 23;
    cINFOBK = 24;
    cHOTLIGHT = 26;
    cGRADIENTACTIVECAPTION = 27;
    cGRADIENTINACTIVECAPTION = 28;
    cMENUHILIGHT = 29;
    cMENUBAR = 30;
    cENDCOLORS = cMENUBAR;
    cDESKTOP = cBACKGROUND;
    c3DFACE = cBTNFACE;
    c3DSHADOW = cBTNSHADOW;
    c3DHIGHLIGHT = cBTNHIGHLIGHT;
    c3DHILIGHT = cBTNHIGHLIGHT;
    cBTNHILIGHT = cBTNHIGHLIGHT;
    SysScrollBar = TColor(SystemColor or cSCROLLBAR);
    SysBackground = TColor(SystemColor or cBACKGROUND);
    SysActiveCaption = TColor(SystemColor or cACTIVECAPTION);
    SysInactiveCaption = TColor(SystemColor or cINACTIVECAPTION);
    SysMenu = TColor(SystemColor or cMENU);
    SysWindow = TColor(SystemColor or cWINDOW);
    SysWindowFrame = TColor(SystemColor or cWINDOWFRAME);
    SysMenuText = TColor(SystemColor or cMENUTEXT);
    SysWindowText = TColor(SystemColor or cWINDOWTEXT);
    SysCaptionText = TColor(SystemColor or cCAPTIONTEXT);
    SysActiveBorder = TColor(SystemColor or cACTIVEBORDER);
    SysInactiveBorder = TColor(SystemColor or cINACTIVEBORDER);
    SysAppWorkSpace = TColor(SystemColor or cAPPWORKSPACE);
    SysHighlight = TColor(SystemColor or cHIGHLIGHT);
    SysHighlightText = TColor(SystemColor or cHIGHLIGHTTEXT);
    SysBtnFace = TColor(SystemColor or cBTNFACE);
    SysBtnShadow = TColor(SystemColor or cBTNSHADOW);
    SysGrayText = TColor(SystemColor or cGRAYTEXT);
    SysBtnText = TColor(SystemColor or cBTNTEXT);
    SysInactiveCaptionText = TColor(SystemColor or cINACTIVECAPTIONTEXT);
    SysBtnHighlight = TColor(SystemColor or cBTNHIGHLIGHT);
    Sys3DDkShadow = TColor(SystemColor or c3DDKSHADOW);
    Sys3DLight = TColor(SystemColor or c3DLIGHT);
    SysInfoText = TColor(SystemColor or cINFOTEXT);
    SysInfoBk = TColor(SystemColor or cINFOBK);
    SysHotLight = TColor(SystemColor or cHOTLIGHT);
    SysGradientActiveCaption = TColor(SystemColor or cGRADIENTACTIVECAPTION);
    SysGradientInactiveCaption = TColor(SystemColor or cGRADIENTINACTIVECAPTION);
    SysMenuHighlight = TColor(SystemColor or cMENUHILIGHT);
    SysMenuBar = TColor(SystemColor or cMENUBAR);
    SysNone = TColor($1FFFFFFF);
    SysDefault = TColor($20000000);
    Aliceblue = TColor($FFF8F0);
    Antiquewhite = TColor($D7EBFA);
    Aqua = TColor($FFFF00);
    Aquamarine = TColor($D4FF7F);
    Azure = TColor($FFFFF0);
    Beige = TColor($DCF5F5);
    Bisque = TColor($C4E4FF);
    Black = TColor($000000);
    Blanchedalmond = TColor($CDEBFF);
    Blue = TColor($FF0000);
    Blueviolet = TColor($E22B8A);
    Brown = TColor($2A2AA5);
    Burlywood = TColor($87B8DE);
    Cadetblue = TColor($A09E5F);
    Chartreuse = TColor($00FF7F);
    Chocolate = TColor($1E69D2);
    Coral = TColor($507FFF);
    Cornflowerblue = TColor($ED9564);
    Cornsilk = TColor($DCF8FF);
    Crimson = TColor($3C14DC);
    Cyan = TColor($FFFF00);
    Darkblue = TColor($8B0000);
    Darkcyan = TColor($8B8B00);
    Darkgoldenrod = TColor($0B86B8);
    Darkgray = TColor($A9A9A9);
    Darkgreen = TColor($006400);
    Darkgrey = TColor($A9A9A9);
    Darkkhaki = TColor($6BB7BD);
    Darkmagenta = TColor($8B008B);
    Darkolivegreen = TColor($2F6B55);
    Darkorange = TColor($008CFF);
    Darkorchid = TColor($CC3299);
    Darkred = TColor($00008B);
    Darksalmon = TColor($7A96E9);
    Darkseagreen = TColor($8FBC8F);
    Darkslateblue = TColor($8B3D48);
    Darkslategray = TColor($4F4F2F);
    Darkslategrey = TColor($4F4F2F);
    Darkturquoise = TColor($D1CE00);
    Darkviolet = TColor($D30094);
    Deeppink = TColor($9314FF);
    Deepskyblue = TColor($FFBF00);
    Dimgray = TColor($696969);
    Dimgrey = TColor($696969);
    Dodgerblue = TColor($FF901E);
    Firebrick = TColor($2222B2);
    Floralwhite = TColor($F0FAFF);
    Forestgreen = TColor($228B22);
    Fuchsia = TColor($FF00FF);
    Gainsboro = TColor($DCDCDC);
    Ghostwhite = TColor($FFF8F8);
    Gold = TColor($00D7FF);
    Goldenrod = TColor($20A5DA);
    Gray = TColor($808080);
    Green = TColor($008000);
    Greenyellow = TColor($2FFFAD);
    Grey = TColor($808080);
    Honeydew = TColor($F0FFF0);
    Hotpink = TColor($B469FF);
    Indianred = TColor($5C5CCD);
    Indigo = TColor($82004B);
    Ivory = TColor($F0FFFF);
    Khaki = TColor($8CE6F0);
    Lavender = TColor($FAE6E6);
    Lavenderblush = TColor($F5F0FF);
    Lawngreen = TColor($00FC7C);
    Lemonchiffon = TColor($CDFAFF);
    Lightblue = TColor($E6D8AD);
    Lightcoral = TColor($8080F0);
    Lightcyan = TColor($FFFFE0);
    Lightgoldenrodyellow = TColor($D2FAFA);
    Lightgray = TColor($D3D3D3);
    Lightgreen = TColor($90EE90);
    Lightgrey = TColor($D3D3D3);
    Lightpink = TColor($C1B6FF);
    Lightsalmon = TColor($7AA0FF);
    Lightseagreen = TColor($AAB220);
    Lightskyblue = TColor($FACE87);
    Lightslategray = TColor($998877);
    Lightslategrey = TColor($998877);
    Lightsteelblue = TColor($DEC4B0);
    Lightyellow = TColor($E0FFFF);
    LtGray = TColor($C0C0C0);
    MedGray = TColor($A4A0A0);
    DkGray = TColor($808080);
    MoneyGreen = TColor($C0DCC0);
    LegacySkyBlue = TColor($F0CAA6);
    Cream = TColor($F0FBFF);
    Lime = TColor($00FF00);
    Limegreen = TColor($32CD32);
    Linen = TColor($E6F0FA);
    Magenta = TColor($FF00FF);
    Maroon = TColor($000080);
    Mediumaquamarine = TColor($AACD66);
    Mediumblue = TColor($CD0000);
    Mediumorchid = TColor($D355BA);
    Mediumpurple = TColor($DB7093);
    Mediumseagreen = TColor($71B33C);
    Mediumslateblue = TColor($EE687B);
    Mediumspringgreen = TColor($9AFA00);
    Mediumturquoise = TColor($CCD148);
    Mediumvioletred = TColor($8515C7);
    Midnightblue = TColor($701919);
    Mintcream = TColor($FAFFF5);
    Mistyrose = TColor($E1E4FF);
    Moccasin = TColor($B5E4FF);
    Navajowhite = TColor($ADDEFF);
    Navy = TColor($800000);
    Oldlace = TColor($E6F5FD);
    Olive = TColor($008080);
    Olivedrab = TColor($238E6B);
    Orange = TColor($00A5FF);
    Orangered = TColor($0045FF);
    Orchid = TColor($D670DA);
    Palegoldenrod = TColor($AAE8EE);
    Palegreen = TColor($98FB98);
    Paleturquoise = TColor($EEEEAF);
    Palevioletred = TColor($9370DB);
    Papayawhip = TColor($D5EFFF);
    Peachpuff = TColor($B9DAFF);
    Peru = TColor($3F85CD);
    Pink = TColor($CBC0FF);
    Plum = TColor($DDA0DD);
    Powderblue = TColor($E6E0B0);
    Purple = TColor($800080);
    Red = TColor($0000FF);
    Rosybrown = TColor($8F8FBC);
    Royalblue = TColor($E16941);
    Saddlebrown = TColor($13458B);
    Salmon = TColor($7280FA);
    Sandybrown = TColor($60A4F4);
    Seagreen = TColor($578B2E);
    Seashell = TColor($EEF5FF);
    Sienna = TColor($2D52A0);
    Silver = TColor($C0C0C0);
    Skyblue = TColor($EBCE87);
    Slateblue = TColor($CD5A6A);
    Slategray = TColor($908070);
    Slategrey = TColor($908070);
    Snow = TColor($FAFAFF);
    Springgreen = TColor($7FFF00);
    Steelblue = TColor($B48246);
    Tan = TColor($8CB4D2);
    Teal = TColor($808000);
    Thistle = TColor($D8BFD8);
    Tomato = TColor($4763FF);
    Turquoise = TColor($D0E040);
    Violet = TColor($EE82EE);
    Wheat = TColor($B3DEF5);
    White = TColor($FFFFFF);
    Whitesmoke = TColor($F5F5F5);
    Yellow = TColor($00FFFF);
    Yellowgreen = TColor($32CD9A);
    Null = TColor($00000000);
    class var ColorToRGB: function (Color: TColor): Longint;
{    class operator Implicit(const C: TColor): TColorRec; inline;
    class operator Implicit(const C: TColorRec): TColor; inline;
    class operator Implicit(const C: TColorRec): Longint; inline;
    class operator Explicit(const C: TColorRec): Longint; inline;}
    case LongWord of
      0:
        (Color: TColor);
      2:
        (HiWord, LoWord: Word);
      3:
{$IFDEF BIGENDIAN}
        (A, B, G, R: System.Byte);
{$ELSE}
        (R, G, B, A: System.Byte);
{$ENDIF}
  end;

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;
        };
    };
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.UITypes.pas
System.UITypes.hpp
System.UITypes System.UITypes

Description

TColorRec provides access to the color channels record.

Use constants in TColorRec to obtain access to the color channels record for the TColor type.

The Colors table shows constants defining actual colors. These constants map directly to the closest matching color in the system palette (for example, Blue maps to blue).

The System Colors table shows constants defining system colors. Now these constants are supported only under the VCL framework. To obtain RGB colors for these constants, use the ColorToRGB field of this record. To use this pointer, an actual function providing such conversion needs to be specified. Now we provide the Vcl.Graphics.ColorToRGB function -- under VCL framework -- which provides conversion of a TColor value into a RGB representation of the color. Under the FireMonkey framework you can provide such function yourself.

Colors

TColorRec Constants Colors A B G R

Aliceblue

Aliceblue

00 FF F8 F0

Antiquewhite

Antiquewhite

00 D7 EB FA

Aqua

Aqua

00 FF FF 00

Aquamarine

Aquamarine

00 D4 FF 7F

Azure

Azure

00 FF FF F0

Beige

Beige

00 DC F5 F5

Bisque

Bisque

00 C4 E4 FF

Black

Black

00 00 00 00

Blanchedalmond

Blanchedalmond

00 CD EB FF

Blue

Blue

00 FF 00 00

Blueviolet

Blueviolet

00 E2 2B 8A

Brown

Brown

00 2A 2A A5

Burlywood

Burlywood

00 87 B8 DE

Cadetblue

Cadetblue

00 A0 9E 5F

Chartreuse

Chartreuse

00 00 FF 7F

Chocolate

Chocolate

00 1E 69 D2

Coral

Coral

00 50 7F FF

Cornflowerblue

Cornflowerblue

00 ED 95 64

Cornsilk

Cornsilk

00 DC F8 FF

Crimson

Crimson

00 3C 14 DC

Cyan

Cyan

00 FF FF 00

Darkblue

Darkblue

00 8B 00 00

Darkcyan

Darkcyan

00 8B 8B 00

Darkgoldenrod

Darkgoldenrod

00 0B 86 B8

Darkgray

Darkgray

00 A9 A9 A9

Darkgreen

Darkgreen

00 00 64 00

Darkgrey

Darkgrey

00 A9 A9 A9

Darkkhaki

Darkkhaki

00 6B B7 BD

Darkmagenta

Darkmagenta

00 8B 00 8B

Darkolivegreen

Darkolivegreen

00 2F 6B 55

Darkorange

Darkorange

00 00 8C FF

Darkorchid

Darkorchid

00 CC 32 99

Darkred

Darkred

00 00 00 8B

Darksalmon

Darksalmon

00 7A 96 E9

Darkseagreen

Darkseagreen

00 8F BC 8F

Darkslateblue

Darkslateblue

00 8B 3D 48

Darkslategray

Darkslategray

00 4F 4F 2F

Darkslategrey

Darkslategrey

00 4F 4F 2F

Darkturquoise

Darkturquoise

00 D1 CE 00

Darkviolet

Darkviolet

00 D3 00 94

Deeppink

Deeppink

00 93 14 FF

Deepskyblue

Deepskyblue

00 FF BF 00

Dimgray

Dimgray

00 69 69 69

Dimgrey

Dimgrey

00 69 69 69

Dodgerblue

Dodgerblue

00 FF 90 1E

Firebrick

Firebrick

00 22 22 B2

Floralwhite

Floralwhite

00 F0 FA FF

Forestgreen

Forestgreen

00 22 8B 22

Fuchsia

Fuchsia

00 FF 00 FF

Gainsboro

Gainsboro

00 DC DC DC

Ghostwhite

Ghostwhite

00 FF F8 F8

Gold

Gold

00 00 D7 FF

Goldenrod

Goldenrod

00 20 A5 DA

Gray

Gray

00 80 80 80

Green

Green

00 00 80 00

Greenyellow

Greenyellow

00 2F FF AD

Grey

Grey

00 80 80 80

Honeydew

Honeydew

00 F0 FF F0

Hotpink

Hotpink

00 B4 69 FF

Indianred

Indianred

00 5C 5C CD

Indigo

Indigo

00 82 00 4B

Ivory

Ivory

00 F0 FF FF

Khaki

Khaki

00 8C E6 F0

Lavender

Lavender

00 FA E6 E6

Lavenderblush

Lavenderblush

00 F5 F0 FF

Lawngreen

Lawngreen

00 00 FC 7C

Lemonchiffon

Lemonchiffon

00 CD FA FF

Lightblue

Lightblue

00 E6 D8 AD

Lightcoral

Lightcoral

00 80 80 F0

Lightcyan

Lightcyan

00 FF FF E0

Lightgoldenrodyellow

Lightgoldenrodyellow

00 D2 FA FA

Lightgray

Lightgray

00 D3 D3 D3

Lightgreen

Lightgreen

00 90 EE 90

Lightgrey

Lightgrey

00 D3 D3 D3

Lightpink

Lightpink

00 C1 B6 FF

Lightsalmon

Lightsalmon

00 7A A0 FF

Lightseagreen

Lightseagreen

00 AA B2 20

Lightskyblue

Lightskyblue

00 FA CE 87

Lightslategray

Lightslategray

00 99 88 77

Lightslategrey

Lightslategrey

00 99 88 77

Lightsteelblue

Lightsteelblue

00 DE C4 B0

Lightyellow

Lightyellow

00 E0 FF FF

LtGray

LtGray

00 C0 C0 C0

MedGray

MedGray

00 A4 A0 A0

DkGray

DkGray

00 80 80 80

MoneyGreen

MoneyGreen

00 C0 DC C0

LegacySkyBlue

LegacySkyBlue

00 F0 CA A6

Cream

Cream

00 F0 FB FF

Lime

Lime

00 00 FF 00

Limegreen

Limegreen

00 32 CD 32

Linen

Linen

00 E6 F0 FA

Magenta

Magenta

00 FF 00 FF

Maroon

Maroon

00 00 00 80

Mediumaquamarine

Mediumaquamarine

00 AA CD 66

Mediumblue

Mediumblue

00 CD 00 00

Mediumorchid

Mediumorchid

00 D3 55 BA

Mediumpurple

Mediumpurple

00 DB 70 93

Mediumseagreen

Mediumseagreen

00 71 B3 3C

Mediumslateblue

Mediumslateblue

00 EE 68 7B

Mediumspringgreen

Mediumspringgreen

00 9A FA 00

Mediumturquoise

Mediumturquoise

00 CC D1 48

Mediumvioletred

Mediumvioletred

00 85 15 C7

Midnightblue

Midnightblue

00 70 19 19

Mintcream

Mintcream

00 FA FF F5

Mistyrose

Mistyrose

00 E1 E4 FF

Moccasin

Moccasin

00 B5 E4 FF

Navajowhite

Navajowhite

00 AD DE FF

Navy

Navy

00 80 00 00

Oldlace

Oldlace

00 E6 F5 FD

Olive

Olive

00 00 80 80

Olivedrab

Olivedrab

00 23 8E 6B

Orange

Orange

00 00 A5 FF

Orangered

Orangered

00 00 45 FF

Orchid

Orchid

00 D6 70 DA

Palegoldenrod

Palegoldenrod

00 AA E8 EE

Palegreen

Palegreen

00 98 FB 98

Paleturquoise

Paleturquoise

00 EE EE AF

Palevioletred

Palevioletred

00 93 70 DB

Papayawhip

Papayawhip

00 D5 EF FF

Peachpuff

Peachpuff

00 B9 DA FF

Peru

Peru

00 3F 85 CD

Pink

Pink

00 CB C0 FF

Plum

Plum

00 DD A0 DD

Powderblue

Powderblue

00 E6 E0 B0

Purple

Purple

00 80 00 80

Red

Red

00 00 00 FF

Rosybrown

Rosybrown

00 8F 8F BC

Royalblue

Royalblue

00 E1 69 41

Saddlebrown

Saddlebrown

00 13 45 8B

Salmon

Salmon

00 72 80 FA

Sandybrown

Sandybrown

00 60 A4 F4

Seagreen

Seagreen

00 57 8B 2E

Seashell

Seashell

00 EE F5 FF

Sienna

Sienna

00 2D 52 A0

Silver

Silver

00 C0 C0 C0

Skyblue

Skyblue

00 EB CE 87

Slateblue

Slateblue

00 CD 5A 6A

Slategray

Slategray

00 90 80 70

Slategrey

Slategrey

00 90 80 70

Snow

Snow

00 FA FA FF

Springgreen

Springgreen

00 7F FF 00

Steelblue

Steelblue

00 B4 82 46

Tan

Tan

00 8C B4 D2

Teal

Teal

00 80 80 00

Thistle

Thistle

00 D8 BF D8

Tomato

Tomato

00 47 63 FF

Turquoise

Turquoise

00 D0 E0 40

Violet

Violet

00 EE 82 EE

Wheat

Wheat

00 B3 DE F5

White

White

00 FF FF FF

Whitesmoke

Whitesmoke

00 F5 F5 F5

Yellow

Yellow

00 00 FF FF

Yellowgreen

Yellowgreen

00 32 CD 9A

Null

Null

00 00 00 00

System Colors

TColorRec Constants Integer Value Default Colors under Windows 7

SysScrollBar

FF 00 00 00

The color of the background of a scroll bar.

SysBackground

FF 00 00 01

The current background color of the desktop.

SysActiveCaption

FF 00 00 02

The background color of the active window's title bar.

SysInactiveCaption

FF 00 00 03

The background color of an inactive window's title bar.

SysMenu

FF 00 00 04

The current background color of menus.

SysWindow

FF 00 00 05

The current color of the background in the client area of Windows.

SysWindowFrame

FF 00 00 06

The current color of a window frame.

SysMenuText

FF 00 00 07

The current color of a menu's text.

SysWindowText

FF 00 00 08

The current color of the text in the client area of a window.

SysCaptionText

FF 00 00 09

The current color of the text on the active window's title bar.

SysActiveBorder

FF 00 00 0A

The current color of the active window's border.

SysInactiveBorder

FF 00 00 0B

The current color of an inactive window's border.

SysAppWorkSpace

FF 00 00 0C

The current color of the application workspace.

SysHighlight

FF 00 00 0D

The current color of the background of selected items.

SysHighlightText

FF 00 00 0E

The current color of the text of selected items.

SysBtnFace

FF 00 00 0F

The current color of a button's face.

SysBtnShadow

FF 00 00 10

The current color of a button's shadow.

SysGrayText

FF 00 00 11

The current color of a dimmed text.

SysBtnText

FF 00 00 12

The current color of a button's text.

SysInactiveCaptionText

FF 00 00 13

The current color of the text in an inactive window's title bar.

SysBtnHighlight

FF 00 00 14

The current color of the highlighting on a button.

Sys3DDkShadow

FF 00 00 15

The current color of the dark shadow for three-dimensional display elements.

Sys3DLight

FF 00 00 16

The current color of the light color for three-dimensional display elements (for edges facing the light source).

SysInfoText

FF 00 00 17

The current color of the text of a ToolTip.

SysInfoBk

FF 00 00 18

The current background color for ToolTip controls.

SysHotLight

FF 00 00 1A

The current color used to designate a hot-tracked item.

SysGradientActiveCaption

FF 00 00 1B

The current lightest color in the color gradient of the active window's title bar. See SysActiveCaption for the darkest color gradient of the active window's title bar.

SysGradientInactiveCaption

FF 00 00 1C

The current lightest color in the color gradient of an inactive window's title bar. See SysInactiveCaption for the darkest color gradient of an inactive window's title bar.

SysMenuHighlight

FF 00 00 1D

The current color used to highlight menu items when the menu appears as a flat menu.

SysMenuBar

FF 00 00 1E

The current color of the background of a menu bar.

SystemColor

FF 00 00 00

The mask FF byte to designate system colors.

SysNone

1F FF FF FF

Do not use any color to fill an item background.

SysDefault

20 00 00 00

The default color to fill the particular type of items.


See Also