[fpc-pascal] red( clGrayText)

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Dec 2 01:42:06 CET 2014


On Mon, 01 Dec 2014 22:01:15 -0200
Philippe <philippe at quarta.com.br> wrote:

>[...]
> http://wiki.lazarus.freepascal.org/Colors#System_colors [1]
> > 
> > I have seen it ... but did not catch that it may not work
> with red( x) ... making it more simple, it means that the range of
> values used for those constants as clGrayText is not TColor compatible.
> Is that correct? 

clGrayText is a TColor, but TColor is not always a simple RGB value.
System colors are context sensitive.
You might try

Red(ColorToRGB(clGrayText));


Mattias



More information about the fpc-pascal mailing list