View Single Post
  #13  
Old July 2nd, 2005, 08:01 PM
rocco
external usenet poster
 
Posts: n/a
Default

Thank you Allen,
can I ask you another question?
How can I use the values you listed in RGB?
I mean RGb is usually made by thre numbers (i.e. red is RGB(255,0,0)).
How can I tralslate your liste into RGB?

Thanks anyway.

"Allen Browne" wrote:

Not sure where I got this list from: probably Stephen Lebans:

System colours:
==============
Scroll bar -2147483648
Desktop -2147483647
Active window title bar -2147483646
Inactive window title bar -2147483645
Menu bar -2147483644
Window -2147483643
Window frame -2147483642
Menu text -2147483641
Window text -2147483640
Title bar text -2147483639
Active window border -2147483638
Inactive window border -2147483637
Application background -2147483636
Highlight -2147483635
Highlight text -2147483634
3-D face -2147483633
3-D shadow -2147483632
Dimmed (disabled) text -2147483631
Button text -2147483630
Inactive window title bar text -2147483629
3-D highlight -2147483628
3-D dark shadow -2147483627
3-D light -2147483626
ToolTip text -2147483625
ToolTip background -2147483624

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rocco" wrote in message
...
Hello,
I hope you don't mind if I come into your discussion. Does anyone know
what
is the RGB value for the command button? It's kind of grey, but I cannot
find
the values, so that I could apply it as background of graphics I build.

Thanks,
Rocco

"John Vinson" wrote:

On Sat, 2 Apr 2005 14:29:02 -0800, "Sam Kuo"
.(donotspam) wrote:

However, It seems Access defines the color constant differently? For
example, color constant for Grey would be 8421504, but its RGB is 128,
128,
128.

The color code is a "packed" long integer: the RGB code is the Red
value + 255 * the Green value + 65536 * the Blue value. Essentially,
it's three 8-bit numbers packed into a 24 bit value.


John W. Vinson[MVP]