State of Popup Menu on Mousemove

T

Tim

In Access 2002 is there a way to check to see if a popup
commandbar is already popped up?

If not, there might be another solution. Here's what I am
doing. Within a mousemove event I am popping up a
commandbar something like this:

Select Case Button
Case 1 'left mouse
If Shift = 1 Then
CommandBars("MyMenu1").ShowPopup
Else
CommandBars("MyMenu2").ShowPopup
End If
Case 2 'right mouse
CommandBars("MyMenu3").ShowPopup
End Select

When the user clicks a mouse button one of the menus pop
up depending on which button they click and if they are
holding the shift key. I have no problem if the shift key
is not held down. When it is, sometimes Button and Shift
get "stuck," and the menu pops up repeatedly in an
infitite loop until the application looses focus. This
seems to happen randomly.

Any idea why this happens or how to fix it?

Tim
 
T

Tim

Well, this is pretty obvious. The way to tell if a pop up
commandbar is popped up already is to check the Visible
propery.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top