Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - HidePopup Method?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HidePopup Method?

 Post Reply Post Reply
Author
Message
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Topic: HidePopup Method?
    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.Controls.Add xtpControlLabel, ID_TITLE, "Label Title"
             Popup.Controls.Add xtpControlButton, ID_BUTTON1, "Button 1"
             Popup.Controls.Add xtpControlButton, ID_BUTTON2, "Button 2"

        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?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 09 February 2005 at 2:17pm
What event is the code in?  Check that you are only displaing it if right-clicked.
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 09 February 2005 at 2:40pm

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.

Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 5:49pm
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.