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

ShowPopup Help

 Post Reply Post Reply
Author
Message
griswald88 View Drop Down
Groupie
Groupie


Joined: 16 May 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote griswald88 Quote  Post ReplyReply Direct Link To This Post Topic: ShowPopup Help
    Posted: 30 May 2008 at 2:33pm
I have a menu created that has many sub menus and I want to show that menu as a popup when the user right clicks in a specific area, but it doesn't seem to work as I would expect. I am using the following code:
 
CommandBars.ActiveMenuBar.CommandBars(1).ShowPopup
 
I have tried with and without the TPM_RECURSE flag.
 
I don't have to duplicate the entire menu structure as a context menu do I?
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: 30 May 2008 at 2:54pm
Try
 
CommandBars.ActiveMenuBar.Controls(1).CommandBar.ShowPopup
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
griswald88 View Drop Down
Groupie
Groupie


Joined: 16 May 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote griswald88 Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 3:01pm
Perfect...not sure how I would have known to try that; especially since there is no intellisense for it (hidden attribute)?
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.289 seconds.