Command Button Special Effects

A

AlwaysLearning

I want to change the look of a command button from a flat format to a raised
format. However when I click on the Special Effect icon all the images are
greyed out and I can't select anything. The flat format is the default. How
can I change my format?
 
F

fredg

I want to change the look of a command button from a flat format to a raised
format. However when I click on the Special Effect icon all the images are
greyed out and I can't select anything. The flat format is the default. How
can I change my format?

I believe you are mistaken.
A Command Button's special effect is Raised. It's property sheet does
not even have a special effect property. That's why the tool button is
grayed out.
I would rather suspect that what you think is a command button is
actually an unattached label which has been coded to perform a click
event. Labels have a special effect property..

Code the MouseDown property
LabeName.SpecialEffect = 2

Code the MouseUp property
LabelName.SpecialEffect = 1

It will now operate like a command button.
 
D

Dorian

You can also use a toggle button which has 2 states, on or off. Each state
can have a different look.
-- David
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 
A

AlwaysLearning

Sorry for the delay in continuing this chain but I have been out for the past
few days.

I am definitely putting in a command button and the default is flat. The
command button wizard pops up after I select the icon from the tool bar; and
yes there is no property for special effects.
 
G

Gina Whipp

AlwaysLearning,

When you view the Property Sheet of your command button what does it say in
the Title Bar? Since Command Buttons are raised, as per Fredg's posting I
am wondering where/why you see the Default as being flat?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
A

AlwaysLearning

It says Command Button: nameofbutton

All my command buttons in all my forms are flat in this particular database.
I looked back to an older application that was created at another
installation and those command buttons are raised. I added a new button to a
form in that database with my current version of access and it does appear
raised. Is there something in the setting for a database that sets the
default?
 
G

Gina Whipp

As far as I know there is no way to change that. What version of Access are
the flat buttons in? And are you sure THOSE buttons are command buttons.
Go to Design View and see what they say in the Property Sheet window.
Perhaps they are Toggle buttons or Labels made to look like command buttons?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
A

AlwaysLearning

I am running Access 2003. Everything says they are command buttons. Looking
at the Special Effects icon again it does show the default as raised. But on
my form it is definitely flat. One database always shows the buttons as flat
the other always shows them as raised and I am now experimenting with the
same copy of Access.
 
G

Gina Whipp

I'm stumped because there are no Special Effects for command buttons. There
is option to use Windows Themed or not perhaps you should check that
setting. If it is unchecked Command Buttons appear differently but I didn't
think of that as flat. Look under Tools.. Options... Forms/Reports and see
what that box is checked or unchecked in each database.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
C

croy

I believe you are mistaken.
A Command Button's special effect is Raised. It's property sheet does
not even have a special effect property. That's why the tool button is
grayed out.
I would rather suspect that what you think is a command button is
actually an unattached label which has been coded to perform a click
event. Labels have a special effect property..

Code the MouseDown property
LabeName.SpecialEffect = 2

Code the MouseUp property
LabelName.SpecialEffect = 1

It will now operate like a command button.

Fred, did you mean to say "textbox" instead of "label"?

In my Access 2002, labels don't have any event properties...
 
F

fredg

Fred, did you mean to say "textbox" instead of "label"?

In my Access 2002, labels don't have any event properties...

No, I meant to say "Labels".
UNATTACHED labels do indeed have events.
Attached labels (the label added by Access when you add a text control
to your form) do not.

Just add a new label control from the toolbox.
 

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