State of Popup Menu on Mousemove

  • Thread starter Thread starter Tim
  • Start date Start date
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
 
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
 
Back
Top