RGB color of command button control (what grey is it?)

R

rocco

Hello,
To give my database a custom look I would like to use some graphics on the
command buttons.
I built each graphics in .png and then export it in .bmp.
Bmp cannot have transparency, and for what I know Access cannot manage
transparency anyway (either with .gif).
It happens that if I look at the db on some other pc I can see that the
background of my picture doesn't blend perfectly with the color of the
command button (which cannot be changed and will always be a kind of grey).
I means that the grey I use for the canvas of my picture is different from
the grey color of the command button.
Sometimes my picture background is a bit darker, some other a bit lighter.
But not equal. And it is cumbersome to match the exact color just trying and
trying. Also because when I built the graphic and I look at it on my pc I
cannot (obviously) see any difference: the colors match nicely. On other pc
they simply mismatch.
Does anyone know the RGB values of the default color of the command button
control? In this way I could set the background color of my graphics exactly
with the same values and no difference will show up, whatever pc I'm going to
use.
I hope.

thanks,
Rocco
 
R

RuralGuy

Hello,
To give my database a custom look I would like to use some graphics on
the command buttons.
I built each graphics in .png and then export it in .bmp.
Bmp cannot have transparency, and for what I know Access cannot manage
transparency anyway (either with .gif).
It happens that if I look at the db on some other pc I can see that
the background of my picture doesn't blend perfectly with the color of
the command button (which cannot be changed and will always be a kind
of grey). I means that the grey I use for the canvas of my picture is
different from the grey color of the command button.
Sometimes my picture background is a bit darker, some other a bit
lighter. But not equal. And it is cumbersome to match the exact color
just trying and trying. Also because when I built the graphic and I
look at it on my pc I cannot (obviously) see any difference: the
colors match nicely. On other pc they simply mismatch.
Does anyone know the RGB values of the default color of the command
button control? In this way I could set the background color of my
graphics exactly with the same values and no difference will show up,
whatever pc I'm going to use.
I hope.

thanks,
Rocco

Hi Rocco,

Have you looked here?
http://www.lebans.com/transparent.htm

Stephan has been known to perform magic!

HTH
 
R

rocco

Thanks, yes I knew it
And I'm sure it works great, but actually I prefer to stay plain, without
having stuff I cannot understand or control in my DB.
So knowing the RGB for the command button will be more than enough.
Thanks anyway.
 
D

DonD

try rgb = 236,233,216

rocco said:
Thanks, yes I knew it
And I'm sure it works great, but actually I prefer to stay plain, without
having stuff I cannot understand or control in my DB.
So knowing the RGB for the command button will be more than enough.
Thanks anyway.
 
B

Brendan Reynolds

The background colour of controls can be changed by the user. For example,
in Windows XP, open an Access form with a command button on it. Now
right-click on your desktop, choose Properties, choose the Appearance tab.
In the 'Windows and buttons' list, if 'Windows XP style' is selected, select
'Windows Classic style', or if 'Windows Classic style' is already selected,
select 'Windows XP style'. Click on 'Apply'. Notice how the colour of the
command button on the Access form has changed.

Further customisation is also possible. In the 'Display Properties' dialog,
try choosing different options in the 'Color scheme' list, and try clicking
the 'Advanced' button.

In short, the answer to the question 'what colour is a command button?' is
'whatever colour the user wants it to be'.

If you match the background colour of your bitmap to a command button on one
PC, there is no guarantee that it will match the background colour of a
command button on another PC - or indeed, even that it will continue to
match the background colour of a command button on the same PC in the
future.
 
R

Rick Brandt

rocco said:
Thanks, yes I knew it
And I'm sure it works great, but actually I prefer to stay plain,
without having stuff I cannot understand or control in my DB.
So knowing the RGB for the command button will be more than enough.
Thanks anyway.

That is a system color for a 3-D object and there is nothing you can do to
exactly match it on all PCs. Any user that is not using the default Windows
theme might have a different color being assigned to that system value.
 
S

Steven Greenberg

There is a freeware program called pixie which will give you the rgb,
hex, etc codes of anything you pass your mouse over. It's a very cool
little tool for capturing colors. can be found at:

http://www.nattyware.com/pixie.html

I have created a program using VB 6.0 which will let you play around with
the RGB colors using sliding bars. You can see how various combinations of
foreground and background colors go together. also it will give you the
hex, decimal (for access users!) and the RGB numbers for each color. Feel
free to use it. You can find it at:

http://shgreenberg.home.comcast.net/RGB-Install.exe

Any comments are appreciated.
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top