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

Reply via email to