Discussion:
converting a color to rbg
(too old to reply)
Glenn Johansen
2008-11-04 22:34:39 UTC
Permalink
How can I convert a color like BTNFACE to it's red, green, and Blue
Components?

TIA

- glenn
Eric Logan
2008-11-04 23:56:11 UTC
Permalink
In the dUFLP, the form 'colorDlg.wfm' displays RGB values and dBase hex
values for many named 'colors', including BtnFace.
E.L.
Post by Glenn Johansen
How can I convert a color like BTNFACE to it's red, green, and Blue
Components?
Hmmmh... there's a function for that in .net; so I assume that there also
should be one in the windows API.
Maybe you can search the WinAPI.
Glenn Johansen
2008-11-05 02:36:05 UTC
Permalink
I'll look at that. thanks.
Post by Eric Logan
In the dUFLP, the form 'colorDlg.wfm' displays RGB values and dBase hex
values for many named 'colors', including BtnFace.
E.L.
Post by Glenn Johansen
How can I convert a color like BTNFACE to it's red, green, and Blue
Components?
Hmmmh... there's a function for that in .net; so I assume that there also
should be one in the windows API.
Maybe you can search the WinAPI.
*Lysander*
2008-11-04 23:11:49 UTC
Permalink
Post by Glenn Johansen
How can I convert a color like BTNFACE to it's red, green, and Blue
Components?
Hmmmh... there's a function for that in .net; so I assume that there
also should be one in the windows API.

Maybe you can search the WinAPI.
Marc VdB
2008-11-05 06:49:09 UTC
Permalink
See colorado.cc in the duflp, it does that sort of things...

HTH,
Marc
Ronnie MacGregor
2008-11-05 14:25:04 UTC
Permalink
On Tue, 4 Nov 2008 17:34:39 -0500
Post by Glenn Johansen
How can I convert a color like BTNFACE to it's red, green, and Blue
Components?
Be aware that you are chasing a moving target ! <g>

Buttonface is not the same colour in W95/W98 as in XP

...... etc. etc.
--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk
Lysander
2008-11-05 14:55:20 UTC
Permalink
Post by Ronnie MacGregor
Buttonface is not the same colour in W95/W98 as in XP
I guess that's what he wants, no?
To find out what actually _IS_ the ButtonFace.

User can set it to anything he/she likes anyway, and unfortunately I
have some colleagues liberately doing so.

Loading...