By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Button Effects on Access forms

P: n/a
Hi There,

I have a form with a number of buttons on.

Instead of using a standard button for the exit command (which would be
grey - or whatever colour your desktop is), I have used a red square.

I have set the on-click event and made the square raised to try to mimic the
other buttons (but in red).

The only problem is that it doesn't depress when you click on it as the
other buttons do.

Is there a way to make it depress until you release the mouse button or is
there a way to make a single normal button appear red but leave the rest as
before.

Any advice greatly appreciated,

Thanks,

John Ortt

Nov 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"John Ortt" <Jo******@Idontwantspamsonoreturnaddress.com> wrote in message
news:42**********@glkas0286.greenlnk.net...
Hi There,

I have a form with a number of buttons on.

Instead of using a standard button for the exit command (which would be
grey - or whatever colour your desktop is), I have used a red square.

I have set the on-click event and made the square raised to try to mimic the
other buttons (but in red).

The only problem is that it doesn't depress when you click on it as the
other buttons do.

Is there a way to make it depress until you release the mouse button or is
there a way to make a single normal button appear red but leave the rest as
before.


Change the SpecialEffect property in the MouseDown event to sunken and to raised
in the MouseUp event. It's not exactly the same look as a button, but pretty
darn close.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2

P: n/a
Change the SpecialEffect property in the MouseDown event to sunken and to raised in the MouseUp event. It's not exactly the same look as a button, but pretty darn close.


Thanks for the tip Rick.

One question, how do you code the sunken and raised issues?

I would imagine something like:

Forms.menu.BigRedButton.SpecialEffect = Raised

But it doesn't seem to like this........
Nov 13 '05 #3

P: n/a
On Tue, 14 Jun 2005 13:58:08 +0100, John Ortt wrote:
Change the SpecialEffect property in the MouseDown event to sunken and to

raised
in the MouseUp event. It's not exactly the same look as a button, but

pretty
darn close.


Thanks for the tip Rick.

One question, how do you code the sunken and raised issues?

I would imagine something like:

Forms.menu.BigRedButton.SpecialEffect = Raised

But it doesn't seem to like this........


No, not like that.

First set the Control's Special Effects property to Raised.

Then code the MouseDown event:
ControllName.SpecialEffect = 2

Code the MouseUp event:
ControlName.SpecialEffect = 1
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #4

P: n/a
John Ortt wrote:
Change the SpecialEffect property in the MouseDown event to sunken
and to raised in the MouseUp event. It's not exactly the same look
as a button, but pretty darn close.


Thanks for the tip Rick.

One question, how do you code the sunken and raised issues?

I would imagine something like:

Forms.menu.BigRedButton.SpecialEffect = Raised

But it doesn't seem to like this........


fredgG gave you the answer. In the future though with stuff like this place
your cursor on the word "SpecialEffect" and then press <F1>. It will take
you directly to the help topic that tells you about that proerty or method.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5

P: n/a
Great...

Thanks guys
"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:4m****************@newssvr12.news.prodigy.com ...
fredgG gave you the answer. In the future though with stuff like this place your cursor on the word "SpecialEffect" and then press <F1>. It will take
you directly to the help topic that tells you about that proerty or

method.

Nov 13 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.