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

Reacting to events in a member of a set of controls

P: n/a
I would like a particular action to fire every time there's a
mouseover event for any button on my (Access 2003) form. Does anyone
know how to do this without writing an OnMouseOver event procedure for
every button?

Oct 30 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Thu, 30 Oct 2008 05:45:10 -0700 (PDT), br********@comcast.net
wrote:

That is the only way. Of course those individual procedures could call
a central function to do something. Unlike .NET Access does not have
bubbled events.

-Tom.
Microsoft Access MVP

>I would like a particular action to fire every time there's a
mouseover event for any button on my (Access 2003) form. Does anyone
know how to do this without writing an OnMouseOver event procedure for
every button?
Oct 30 '08 #2

P: n/a
On Oct 30, 9:21*am, Tom van Stiphout <tom7744.no.s...@cox.netwrote:
On Thu, 30 Oct 2008 05:45:10 -0700 (PDT), brucedo...@comcast.net
wrote:

That is the only way. Of course those individual procedures could call
a central function to do something. Unlike .NET Access does not have
bubbled events.

-Tom.
Microsoft Access MVP
I would like a particular action to fire every time there's a
mouseover event for any button on my (Access 2003) form. * Does anyone
know how to do this without writing an OnMouseOver event procedure for
every button?- Hide quoted text -

- Show quoted text -
Thanks.
Oct 30 '08 #3

P: n/a
rkc
On Oct 30, 9:51*am, brucedo...@comcast.net wrote:
On Oct 30, 9:21*am, Tom van Stiphout <tom7744.no.s...@cox.netwrote:
On Thu, 30 Oct 2008 05:45:10 -0700 (PDT), brucedo...@comcast.net
wrote:
That is the only way. Of course those individual procedures could call
a central function to do something. Unlike .NET Access does not have
bubbled events.
-Tom.
Microsoft Access MVP
>I would like a particular action to fire every time there's a
>mouseover event for any button on my (Access 2003) form. * Does anyone
>know how to do this without writing an OnMouseOver event procedure for
>every button?- Hide quoted text -
- Show quoted text -

Thanks.
You could write a class that encapsulates a button control and
intercepts
defined events, but it's hardly worth the effort for one event.
Oct 30 '08 #4

P: n/a
On Thu, 30 Oct 2008 13:46:17 -0700 (PDT), rkc <rk*@rkcny.comwrote:

Interesting. Can you elaborate?
Are you saying you can write a class and somehow (WithEvents?)
associate it with an ordinary button? That sounds a lot like
subclassing if we were doing straight SDK programming.
Do you have a link?

-Tom.

>On Oct 30, 9:51*am, brucedo...@comcast.net wrote:
>On Oct 30, 9:21*am, Tom van Stiphout <tom7744.no.s...@cox.netwrote:
On Thu, 30 Oct 2008 05:45:10 -0700 (PDT), brucedo...@comcast.net
wrote:
That is the only way. Of course those individual procedures could call
a central function to do something. Unlike .NET Access does not have
bubbled events.
-Tom.
Microsoft Access MVP
>I would like a particular action to fire every time there's a
mouseover event for any button on my (Access 2003) form. * Does anyone
know how to do this without writing an OnMouseOver event procedure for
every button?- Hide quoted text -
- Show quoted text -

Thanks.

You could write a class that encapsulates a button control and
intercepts
defined events, but it's hardly worth the effort for one event.
Oct 31 '08 #5

P: n/a
rkc
On Oct 31, 12:54*am, Tom van Stiphout <tom7744.no.s...@cox.netwrote:
On Thu, 30 Oct 2008 13:46:17 -0700 (PDT), rkc <r...@rkcny.comwrote:

Interesting. Can you elaborate?
Are you saying you can write a class and somehow (WithEvents?)
associate it with an ordinary button? That sounds a lot like
subclassing if we were doing straight SDK programming.
Do you have a link?

-Tom.
On Oct 30, 9:51*am, brucedo...@comcast.net wrote:
On Oct 30, 9:21*am, Tom van Stiphout <tom7744.no.s...@cox.netwrote:
On Thu, 30 Oct 2008 05:45:10 -0700 (PDT), brucedo...@comcast.net
wrote:
That is the only way. Of course those individual procedures could call
a central function to do something. Unlike .NET Access does not have
bubbled events.
-Tom.
Microsoft Access MVP
>I would like a particular action to fire every time there's a
>mouseover event for any button on my (Access 2003) form. * Does anyone
>know how to do this without writing an OnMouseOver event procedure for
>every button?- Hide quoted text -
- Show quoted text -
Thanks.
You could write a class that encapsulates a button control and
intercepts
defined events, but it's hardly worth the effort for one event.
The Master of the out of ordinary does it here with a form. It would
be ridiculous
for me to post anything I have when you can look at what he did.

http://www.lebans.com/animateform.htm
Oct 31 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.