test

progging - To wander about and beg; to seek food or other supplies by low arts; to seek for advantage by mean shift or tricks.
progging - Programmer slang for writing computer code.
Viser innlegg med etiketten RGB. Vis alle innlegg
Viser innlegg med etiketten RGB. Vis alle innlegg

tirsdag 6. september 2011

Define your custom TColor type in Delphi

Do define your own custom color in Delphi, do this:

const
  clChartRed = TColor($B3B3FF);       // 70 % gradient Red on White
  clChartYellow = TColor($B3FFFF);    // 70 % gradient Yellow on White
But remember that Delphi defines the colors as BGR and not the usual RGB so remember to swap numbers.
So the color red would be:
const
  clRed = TColor($0000FF);       // Red