473,395 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Button colour

Hello
Why are my buttons always Grey? how can I change the colour of the button?

Tom
Nov 13 '05 #1
7 7339
"Tom Weston" wrote
Why are my buttons always Grey? how
can I change the colour of the button?


Buttons pick up one of the colors of the Windows color scheme chosen by the
user. In general, that is a good thing because the user is used to clicking
command buttons of that color and recognizes them. If you have other needs,
you can set the Button's Transparent property to Yes and place it over a
rectangle or label of the color you desire.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #2
s
Tom Weston wrote:
Hello
Why are my buttons always Grey? how can I change the colour of the button?


perhaps they are sad
show them some understanding and tlc and they may brighten up

seriously i would not even try to change the button color unless the
functionality of the button has to do with colors, users are used to a
consistant ui

Nov 13 '05 #3
s wrote:
Tom Weston wrote:
Hello
Why are my buttons always Grey? how can I change the colour of the
button?

perhaps they are sad
show them some understanding and tlc and they may brighten up

seriously i would not even try to change the button color unless the
functionality of the button has to do with colors, users are used to a
consistant ui


If they notice them, on my requisition form I have buttons for Select
Bidders, Enquiry, Bid Details and Order. Each gets enabled depending on
if the package has progressed that far (e.g. if no order created yet,
the Order button is disabled). Not good enough for one client, they want
the bloody buttons to turn green as well :-(

--
Pretentious? Moi?
Nov 13 '05 #4
Access has nothing built-in to allow for changes in the command button
backcolor. There are some third-party tools that may help:

A shareware version of Button Painter for MS Access is available at
this web site: http://www.peterssoftware.com/bp.htm

Some simple colored button examples that can be copied into your
application are available at: http://www.peterssoftware.com/clrbtn.htm

Stephen Lebans has an example database that shows how to set a command
button back color and more: http://www.lebans.com/cmdbutton.htm

There are nice "Color Command Buttons" downloads at this site:
http://www.candace-tripp.com/access_downloads.htm

Hope this helps,

--
Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com

"Tom Weston" <t.********@dl.ac.uk> wrote in message news:<cj**********@blackmamba.itd.rl.ac.uk>...
Hello
Why are my buttons always Grey? how can I change the colour of the button?

Tom

Nov 13 '05 #5
On Fri, 01 Oct 2004 19:23:37 +0100, Trevor Best wrote:
s wrote:
Tom Weston wrote:
Hello
Why are my buttons always Grey? how can I change the colour of the
button?


perhaps they are sad
show them some understanding and tlc and they may brighten up

seriously i would not even try to change the button color unless the
functionality of the button has to do with colors, users are used to a
consistant ui


If they notice them, on my requisition form I have buttons for Select
Bidders, Enquiry, Bid Details and Order. Each gets enabled depending on
if the package has progressed that far (e.g. if no order created yet,
the Order button is disabled). Not good enough for one client, they want
the bloody buttons to turn green as well :-(


I think Stephen Lebans has something
http://www.lebans.com

but I would just use a label control.
If you add a label from the toolbox, (Special Effect Raised) you can
code it's Mouse Up (SpecialEffect = 1) and Mouse Down (SpecialEffect =
2) events to emulate the raised and sunken Special Effect of a command
button.
Code the label's click event as you would the command button.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #6
Thanks for all your help, I now have buttons other than grey.
Tom

"fredg" <fg******@example.invalid> wrote in message
news:1u*****************************@40tude.net...
On Fri, 01 Oct 2004 19:23:37 +0100, Trevor Best wrote:
s wrote:
Tom Weston wrote:

Hello
Why are my buttons always Grey? how can I change the colour of the
button?

perhaps they are sad
show them some understanding and tlc and they may brighten up

seriously i would not even try to change the button color unless the
functionality of the button has to do with colors, users are used to a
consistant ui


If they notice them, on my requisition form I have buttons for Select
Bidders, Enquiry, Bid Details and Order. Each gets enabled depending on
if the package has progressed that far (e.g. if no order created yet,
the Order button is disabled). Not good enough for one client, they want
the bloody buttons to turn green as well :-(


I think Stephen Lebans has something
http://www.lebans.com

but I would just use a label control.
If you add a label from the toolbox, (Special Effect Raised) you can
code it's Mouse Up (SpecialEffect = 1) and Mouse Down (SpecialEffect =
2) events to emulate the raised and sunken Special Effect of a command
button.
Code the label's click event as you would the command button.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

Nov 13 '05 #7
Tom Weston wrote:
Thanks for all your help, I now have buttons other than grey.
Tom


And I bet you dress like this:

http://www.imdb.com/gallery/ss/02175...ewis,%20Daniel
(http://tinyurl.com/58br9 to avoid wraps).

:-)

--
Pretentious? Moi?
Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: NONYA | last post by:
This is driving me crazy. I'm having trouble with how a simple radio button is displayed, in a simple html form. The default has the outline around the radio button shaded gray only in the top...
4
by: AA Arens | last post by:
I use a sewt of buttons, created from the "Option Group". I would like to have the pushed button appearing in another color, so it is more clearier which button is pushed. How to proceed it? I am...
1
by: A Ratcliffe | last post by:
Should be simple, but... Wanted to put some nice bitmaps on my First/Previous/Next/Last buttons, so I created four 16-colour bitmaps (as a test), used the traditional magenta colour for the...
7
by: redneon | last post by:
Is it possible to change the border colour of a button whos FlatStyle is set to Flat? It's be nice to be able to change the width of the border too. Any ideas? Darrell
3
by: Mel | last post by:
Hi, Is there any way I can force to change button background colour when toggle button is checked? Just like button change its background colour when mouseover in MS Visual Studio.NET. I hope I...
6
Sushi
by: Sushi | last post by:
Hello! I'm new to the Python language(about 2 months). Having done C programming for 2 years I find out I need Python for a final project, and have been trying to do get my head around object...
5
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have a search page which display a grid of master records. Those records that have children have a hyperlink that takes the user to the Details page for that record. How can I implement...
7
by: Steve Swift | last post by:
How close can you get to making a submit button look like a link? Answers to the inevitable questions: 1. Because I don't want my email address (which would have to be part of the URL in a...
3
by: bettyboo | last post by:
Hi I'm new to the forum and also a VERY new user of Access to develop databases. I'm building a DB for a driving instructor acquaintance, and he wants a button on the pupil data entry form which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.