Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Buttonface RGB

2,516 views
Skip to first unread message

pyanko

unread,
Mar 15, 2007, 12:06:09 PM3/15/07
to
Can anyone give the RGB component values for the buttonface
color. And if possible, in general, how to determine this
from the long color of an object?

Please contact me at pyank...@oneok.com

Thanks

Prabir Chaudhuri

unread,
Mar 15, 2007, 12:14:24 PM3/15/07
to
You can try windows Display properties to get the RGB numbers.
Right click on the window..go to "properties"..go to "desktop" tab..click
"color" then "other". Then choose your color and get you RGB numbers.

Good luck!!

PC
<pyanko> wrote in message news:45f96ef1.512...@sybase.com...

Richard Coleman

unread,
Mar 15, 2007, 12:17:46 PM3/15/07
to
Or what I like to do is to save an object with the color of interest, open
the object in Edit Source mode, and checkout the number.

"Prabir Chaudhuri" <prabirc...@hotmail.com> wrote in message
news:45f970e0$1@forums-1-dub...

Mitch

unread,
Mar 15, 2007, 1:46:47 PM3/15/07
to

Mitch

unread,
Mar 16, 2007, 7:55:35 AM3/16/07
to
You're assuming the ButtonFace color is Gray. The user can
set his own color for ButtonFace. Regardless of what the
user's color is. 67108864 is the Windows color:

User: rgb(128,128,128) = 8421504->Dark Grey
Windows: 67108864

User: rgb(9,128,0) = 32768->Dark Green
Windows:67108864

Getting RGB Colors:
long ll_Color = 12632256 // Gray, ie. Button Face
(192,192,192)
integer li_RVal,li_GVal,li_BVal
li_RVal = integer(mod(ll_Color,256))
li_GVal = integer(mod((ll_Color / 256),256))
li_BVal = ll_Color/ 65536

NOTE: Does NOT work for system color constants. Replacing
ll_Color with the SYSTEM color (67108864) ALWAYS gives
1024,0,0, regardless of the user's ButtonFace setting.

> <pyanko> wrote in message
> > news:45f96ef1.512...@sybase.com... Can anyone
> > give the RGB component values for the buttonface color.
> > And if possible, in general, how to determine this from
> the long color of an object? >
> > Please contact me at pyank...@oneok.com
> >
> > Thanks
>
>
>

> [Attachment: bface.bmp]

Jordi de la Calle

unread,
Aug 1, 2022, 6:35:14 AM8/1/22
to
El dia divendres, 16 de març de 2007 a les 12:55:35 UTC+1, Mitch va escriure:
BUTTONNFACE COLOR -> RGB(237,237,237)
0 new messages