Print Page | Close Window

HidePopup Method?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1768
Printed Date: 16 November 2024 at 2:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HidePopup Method?
Posted By: gshawn
Subject: HidePopup Method?
Date 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?




Replies:
Posted By: SuperMario
Date Posted: 09 February 2005 at 2:17pm
What event is the code in?  Check that you are only displaing it if right-clicked.


Posted By: gshawn
Date 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.



Posted By: gshawn
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net