Button Colours

  • Thread starter Thread starter Jagster
  • Start date Start date
J

Jagster

Hi,

I would like to be able to change the colour of the
buttons on access from that dull gey shade. I can only
seem to be able to change the font colour. Any ideas?

Thanks
Jagster
 
The people who developed Access decided that nobody will
ever want a button color other than grey. They really
need to get out more. See
http://www.lebans.com/cmdbutton.htm for one very good
approach. Also, you can download button images from any
one of several web sites (use Google to find Download
Command Button or something of the sort), and use those as
command button images. This will leave you with gray
borders, but the overall effect can be pretty good.
 
Jagster said:
Hi,

I would like to be able to change the colour of the
buttons on access from that dull gey shade. I can only
seem to be able to change the font colour. Any ideas?

Set the Button's Transparent property to Yes. Create a Label the same size
as the button with the text you want to show on the Button, and the other
properties to your choice, then locate the Label on top of the Button,
select it, and Format | Send to Back.

Or, if you don't want anything more than a Click event, just use a Label
instead of a Command Button. Labels have Click events, too.

Larry Linson
Microsoft Access MVP
 
I ran across something recently for enhancing a label when
the label is used as a command button. I wish I could
remember where I saw this, because I would like to give
credit for the idea. Call the label cmdDoSomething, set
the special effect to raised, then set the Mouse Down
event to:
Me.cmdDoSomething.SpecialEffect = 2
In the Mouse Up event:
Me.cmdDoSomething.SpecialEffect = 1

Similarly, effects can be applied to pictures such as the
command button graphics I mentioned in the previous post.
I am starting to use these techniques as an alternative to
attaching pictures to standard command buttons, and have
found the approach to be very satisfactory when all I need
is a Click event.
In addition to Lebans site (from my previous post in this
thread), another approach can be found at:
http://www.peterssoftware.com/clrbtn.htm
 
Back
Top