Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - popup menus on right mouse click
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

popup menus on right mouse click

 Post Reply Post Reply
Author
Message
skluc View Drop Down
Newbie
Newbie
Avatar

Joined: 19 May 2004
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote skluc Quote  Post ReplyReply Direct Link To This Post Topic: popup menus on right mouse click
    Posted: 19 May 2004 at 9:46am

I see in the MDISample project an example to build a popup menu on right mouse click.

Is it possible build the menu in the commandbar designer and then use it at run time without build the menu everytime?

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: 19 May 2004 at 9:59am
Take a look at the Customizable sample.

Also, you can do something like assuming that you have some type of popup or splitbutton popup control:

        Dim x As CommandBarPopup
        Set Control = CommandBars.FindControl(, ID_FILE_NEW, , True)
        If Not Control Is Nothing Then
         &nbs p;  Control.CommandBar.ShowPopup
        End If

The popup menu should be displayed by default where your mouse it positioned.  You can add a popup menu such as this in the designer and only add it to the collection of designer controls so it is not visible, then use the code above to find and display the popup.  You would need CommandBars.DesignerControls.Find if using the designer and the control is not currently added to any commandbars.
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.156 seconds.