473,467 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Button Effects on Access forms

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
5 4564
"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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
5
by: Nick250 | last post by:
I have a simple app that I created for our Real Estate office using Access 2000 and it is working fine except for on thing. I need to keep the close button hidden from the users. No problem...
1
by: John Michael | last post by:
Is it possible to detect when someone has pushed their Esc button on a form. When a form is open and someone is adding a record, if they push the esc button, the whole form gets reset to an empty...
5
by: Niklaus | last post by:
This is one of the posts that i got. ------------------------------ A "side effect" of an operation is something that *happens*, not something that *is produced*. Examples: In the expression...
4
by: Steve Barnett | last post by:
I want to give one of my forms a "steel" effect background. While I could find a bitmap and tile it over the surface, I've always found this gives a poor effect over a large area. Is there anywhere...
1
by: Waqas Pitafi | last post by:
Hi, 3rd day is already gone without any solution. My problem is, I have a Windows Server 2003 sp1 machine as my development platform having NTFS filesystem. Other notable components installed...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
1
by: Peted | last post by:
im using radio button array with button appearence. Im just wondering if there is a easy way programtically to enhance the button look with such things a gradient color fills and effects and...
3
by: Donald A. Fisher | last post by:
Hello. I've been working a vb project and have a form with a button on it that performs some actions after disabling the button when clicked: Code disabling button and starting actions: Private...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.