Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: pressing the button without... pressing the button - mouse click?

Geek News

pressing the button without... pressing the button - mouse click?
efandango 12/15/2008 9:50:22 PM
I have a button on a form, which has to be pressed repeatedly an awful lot of
times (it's a quiz answer reveal button).

My question is..., can I somehow have it so the mouse can be clicked
anywhere else on the screen, or just simply clicked 'nowhere' without
explicitely having to press the button, (which is very uncomfortable after a
period of time), but still actions the button code.

I have a cordless mouse and find that I can get much more 'mileage' if I
don't hold it on the desk over the button, but say have it upside down in the
palm of my hand.


RE: pressing the button without... pressing the button - mouse click?
Dorian 12/15/2008 10:45:01 PM
If you put a & before a given character in the button caption, you can use an
ALT-key combination to 'press' the button e.g. If caption is E&xit, then
ALT-X will press the Exit button.
You could also use the click event of any control (including the background)
to run the click event for the button.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"efandango" wrote:

[Quoted Text]
> I have a button on a form, which has to be pressed repeatedly an awful lot of
> times (it's a quiz answer reveal button).
>
> My question is..., can I somehow have it so the mouse can be clicked
> anywhere else on the screen, or just simply clicked 'nowhere' without
> explicitely having to press the button, (which is very uncomfortable after a
> period of time), but still actions the button code.
>
> I have a cordless mouse and find that I can get much more 'mileage' if I
> don't hold it on the desk over the button, but say have it upside down in the
> palm of my hand.
>
>
RE: pressing the button without... pressing the button - mouse cli
efandango 12/18/2008 10:04:01 PM
Thanks for those ideas Dorian, but I was hoping that there was a way of
coding things such that once I clicked the button once, thereafter I could
click anywhere. BUt I will explore your suggestions.

"Dorian" wrote:

[Quoted Text]
> If you put a & before a given character in the button caption, you can use an
> ALT-key combination to 'press' the button e.g. If caption is E&xit, then
> ALT-X will press the Exit button.
> You could also use the click event of any control (including the background)
> to run the click event for the button.
> -- Dorian
> "Give someone a fish and they eat for a day; teach someone to fish and they
> eat for a lifetime".
>
>
> "efandango" wrote:
>
> > I have a button on a form, which has to be pressed repeatedly an awful lot of
> > times (it's a quiz answer reveal button).
> >
> > My question is..., can I somehow have it so the mouse can be clicked
> > anywhere else on the screen, or just simply clicked 'nowhere' without
> > explicitely having to press the button, (which is very uncomfortable after a
> > period of time), but still actions the button code.
> >
> > I have a cordless mouse and find that I can get much more 'mileage' if I
> > don't hold it on the desk over the button, but say have it upside down in the
> > palm of my hand.
> >
> >

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net