[AccessD] How to tell a button's "air space" is no longer beinghovered over

Mark Simms marksimms at verizon.net
Mon Jul 4 19:56:37 CDT 2011


Easier said than done.
You must add logic to detect when the mouse is moving INTO the object
airspace...
And then logic to detect when the mouse is moving OUT OF the airspace.

It's called "Mouseover". Another detail that MSFT omitted in Office VBA.
Sure would have been nice to have a Mouseover event handler...right ?

> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com [mailto:accessd-
> bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal
> Sent: Monday, July 04, 2011 10:23 AM
> To: Access Developers discussion and problem solving
> Subject: Re: [AccessD] How to tell a button's "air space" is no longer
> beinghovered over
>
> William,
>
>     For detecting whether the mouse pointer has moved away from the
> control in question, you can use the MouseMove event of form section to
> which the said control belongs, for example:
>
> ' Code in form's module
> '=============================
> Private Sub Detail_MouseMove( _
>                 Button As Integer, Shift As Integer,  _
>                 X As Single, Y As Single)
>
>     ' <<Your Code>>
>
> End Sub
> '--------------------------------------------
>
> Private Sub FormFooter_MouseMove( _
>                 Button As Integer, Shift As Integer,  _
>                 X As Single, Y As Single)
>
>     ' <<Your Code>>
>
> End Sub
> '--------------------------------------------
>
> Private Sub FormHeader_MouseMove( _
>                 Button As Integer, Shift As Integer,  _
>                 X As Single, Y As Single)
>
>     ' <<Your Code>>
>
> End Sub
> '=============================
>





More information about the AccessD mailing list