Please contact me at pyank...@oneok.com
Thanks
Good luck!!
PC
<pyanko> wrote in message news:45f96ef1.512...@sybase.com...
"Prabir Chaudhuri" <prabirc...@hotmail.com> wrote in message
news:45f970e0$1@forums-1-dub...
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]