OnMouseMove? (1 Viewer)

Rogue Programme

Registered User.
Local time
Today, 15:33
Joined
Jul 16, 2003
Messages
55
I have created a transparent label on a form footer that will appear when the user mousemoves over a command button...

Example

User moves mouse over command button.

Form footer text appears "Go to Employee Details Screen"

When user mousemoves off command button the footer text dissapears.

However, at the moment when i mousemove on command button the helptext appears on form footer but will not dissapear when mousemove off command button.

This is the code i have used on HelpText label...

Private Sub HelpText_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
Me![HelpText].Caption = ""
End Sub

This is the code i use for OnMouseMove on command button..

Private Sub cmdemployee_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
Me![HelpText].Caption = "Go to Employee Details Screen"
End Sub

Can anyone tell me why the text will not dissapear when i mousemove off command button?

Mike
 
Last edited:

ghudson

Registered User.
Local time
Today, 10:33
Joined
Jun 8, 2002
Messages
6,195
You need to set the focus to another object. I do something simular as you but I use the MouseMove event of the "Detail" section of the form to reset the "status". Check out this old sample I made for somebody last year and see how I use the mouse move events and also a very small text box named "tbHidden". I always set the focus to that text box when needed to give the form a clean look and also to remove the focus from the other controls.

HTH
 

Attachments

  • mouseoverpopups.zip
    21.5 KB · Views: 2,055

Rogue Programme

Registered User.
Local time
Today, 15:33
Joined
Jul 16, 2003
Messages
55
Ghudson...

Great sample, thanks for that.;)

Mike
 

Users who are viewing this thread

Top Bottom