Try   showmessage(IntToHex(ColorToRGB(clBtnFace), 6));

So, (IntToHex(ColorToRGB(clRed), 6)); will give you 0000FF.

Each 2 hex digits is the value of Red, Green or Blue. (In BGR order I think)

Today's Topics:

  1. system colours (Liz Hundy)


----------------------------------------------------------------------

Message: 1
Date: Sun, 13 Mar 2005 10:05:30 -0000
From: "Liz Hundy" <[EMAIL PROTECTED]>
Subject: system colours
To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

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





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

Reply via email to