<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Em 01.12.2014 22:42, Mattias Gaertner escreveu:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>On Mon, 01 Dec 2014 22:01:15 -0200
Philippe <<a href="mailto:philippe@quarta.com.br">philippe@quarta.com.br</a>> wrote:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">[...] <a href="http://wiki.lazarus.freepascal.org/Colors#System_colors">http://wiki.lazarus.freepascal.org/Colors#System_colors</a>[1]
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">I have seen it ... but did not catch that it may not work</blockquote>
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?</blockquote>
<pre>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<br /><br />working fine !<br />Thank you.<br />
_______________________________________________
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
<p> </p>
</body></html>