Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Need to click on Button WITHOUT popup closing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need to click on Button WITHOUT popup closing

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: Need to click on Button WITHOUT popup closing
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2007 at 7:18am
 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.030 seconds.