Print Page | Close Window

Need to click on Button WITHOUT popup closing

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=8297
Printed Date: 18 June 2025 at 2:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Need to click on Button WITHOUT popup closing
Posted By: LeeHayton
Subject: Need to click on Button WITHOUT popup closing
Date Posted: 04 October 2007 at 11:21am
I need to select a button on a popup without the popup closing - I need the popup to stay open with the button checked.
 
How do I stop the popup from closing?
 
Thanks
Lee



Replies:
Posted By: Oleg
Date Posted: 05 October 2007 at 4:13am
Hello,
Its default behavior  to not close Popup. Check your code - you close it manually or set Close id for your button.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: LeeHayton
Date Posted: 05 October 2007 at 5:06am
Sorry - I disagree.  Maybes I was unclear as to what I meant.
 
If you execute this code and then click on the menu item called "Button 1" then the POPUP will close - as expected.
 
However, I wish it NOT to close as I want to highlight (Checked = true) the button which has been clicked and close the popu0p when I want to.
 
Dim cbp As CommandBarPopup, cbb As CommandBarButton
With CommandBars1
    Set cbp = .ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "Options Menu")
        Set cbb = cbp.CommandBar.Controls.Add(xtpControlButton, 1, "Button 1")
End With
 
Thanks
Lee


Posted By: Oleg
Date Posted: 05 October 2007 at 7:01am
oh. I thoght you mean Popup Controll and not Popup Menu.
 
ok, set cbb.CloseSubMenuOnClick = False


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: LeeHayton
Date Posted: 05 October 2007 at 7:18am
 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