Tony
asked on
On Mouse Move, On Mouse OUT.
Hi,
Ms-Access - Vba.
As you know, in the event On Mouse Move it is possible to trigger something.
I have an specific case where I need that when the mouse Move on a Control (Combo) another form is open, the form get the focus and the mouse is now on the new open form. I can do that, very easy.
However, how can I simulate a On Mouse OUT event? So when I move the mouse Out of the new open form the form is automatically close.
It is actually behaving like a menu, where you put the mouse on a control, the menu displays. When you move the mouse out, the menu disappears.
Thank you..
Ms-Access - Vba.
As you know, in the event On Mouse Move it is possible to trigger something.
I have an specific case where I need that when the mouse Move on a Control (Combo) another form is open, the form get the focus and the mouse is now on the new open form. I can do that, very easy.
However, how can I simulate a On Mouse OUT event? So when I move the mouse Out of the new open form the form is automatically close.
It is actually behaving like a menu, where you put the mouse on a control, the menu displays. When you move the mouse out, the menu disappears.
Thank you..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The triggers are in the code itself. The calling form's Detail Mouse_Move and the control's MouseMove.
ASKER
Ok. I will try.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok.. I will check..
Instead of using another form, you might want to consider using a shortcut menu.
You can use the Access Shortcut Tool to design custom shortcut menus which you can either assign to the ShortcutMenuBar property of a control (would require right click in the control) or can popup during the MouseMove event, something like:
You can use the Access Shortcut Tool to design custom shortcut menus which you can either assign to the ShortcutMenuBar property of a control (would require right click in the control) or can popup during the MouseMove event, something like:
Private Sub YourControlName_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Commandbars("yourCustomMenu").showpopup
End Sub
and with this, you don't have to worry about closing the popup.
ASKER