A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MouseDown event does not always fire



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2010, 03:58 PM posted to microsoft.public.access.forms
DRedDog
external usenet poster
 
Posts: 10
Default MouseDown event does not always fire

My form contains a box control and some label controls on top of the box.
The labels' mouse move events contain code to emphasize the labels caption
(increase font weight and underline) and the box's mousemove event resets
the label to normal.

And it works ... some of the time.

But if I move the mouse quickly across the box from one label to the next
the mouse move event does not always fire.

How to fix this?

DT

  #2  
Old May 11th, 2010, 05:49 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default MouseDown event does not always fire

"DRedDog" wrote in message
news
My form contains a box control and some label controls on top of the box.
The labels' mouse move events contain code to emphasize the labels caption
(increase font weight and underline) and the box's mousemove event resets
the label to normal.

And it works ... some of the time.

But if I move the mouse quickly across the box from one label to the next
the mouse move event does not always fire.

How to fix this?



Space the controls farther apart, or move the mouse more slowly. Those are
the only ways I know. The MouseMove event seems to be somewhat granular,
and if the mouse moves very quickly over a small space, it doesn't fire.

You may also want to use the MouseMove event of the form's Detail section to
reset the label properties. That would give you a second-level defense.

I *suppose* it would be possible to use the form's Timer event to check the
position of the mouse cursor and see if it is over one of the labels or not.
That would more complicated, and add overhead you might not want.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.