> Have a look at the ColorToRGB() function from the Graphics unit.
This one works only with system color, right?

Monir.
----- Original Message -----
From: "Stephen Posey" <[EMAIL PROTECTED]>
To: "Delphi-Talk Discussion List" <[EMAIL PROTECTED]>
Sent: Sunday, March 13, 2005 9:27 PM
Subject: Re: system colours


> Liz Hundy wrote:
>
> > Please can someone tell me how I get the RGB colour numbers from
clBtnFace.
> > GetBValue, getRValue, getGValue  give silly numbers (Delphi 5 and XP).
> > ---Liz
>
> Have a look at the ColorToRGB() function from the Graphics unit.
>
> This returns a longint that the Windows API uses (AKA a "COLORREF"), but
> you can safely cast the result to a TColor.
>
> Stephen Posey
> [EMAIL PROTECTED]
>
>
>
> __________________________________________________
> Delphi-Talk mailing list -> [EMAIL PROTECTED]
> http://www.elists.org/mailman/listinfo/delphi-talk


__________________________________________________
Delphi-Talk mailing list -> [EMAIL PROTECTED]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to