HidePopup Method? |
Post Reply |
Author | |
gshawn
Senior Member Joined: 04 October 2004 Status: Offline Points: 227 |
Post Options
Thanks(0)
Posted: 09 February 2005 at 12:44pm |
Hi, Does anyone know how I should go about hiding a popup menu? I am showing it like this: Set Popup = frmMain.cb.Add("Popup", xtpBarPopup) Popup.ShowPopup Now, the CommandBars control is located on an MDI form (frmMain). The Popup is displayed when the user right-clicks on the MDIChild window. If I left-click inside the MDIChild window, the popup does not disappear as expected. So, I would like to hide it manually. How can I go about doing this? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
What event is the code in? Check that you are only displaing it if right-clicked.
|
|
gshawn
Senior Member Joined: 04 October 2004 Status: Offline Points: 227 |
Post Options
Thanks(0)
|
SuperMario, I am 100% sure that the code behind the popup menu is correct. I just tried on a different system, and it is working fine there. Meaning that the popup menu disappears when left-clicking the MDIChild form. Both systems are using Windows XP Pro SP2... but I will try to isolate the problem and report back. Thanks. |
|
gshawn
Senior Member Joined: 04 October 2004 Status: Offline Points: 227 |
Post Options
Thanks(0)
|
I have been unable to reproduce the problem systematically, and now it does not occur at all. I will blame this on a flakey driver issue! Thanks.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |