Print Page | Close Window

popup menus on right mouse click

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=758
Printed Date: 11 May 2024 at 5:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: popup menus on right mouse click
Posted By: skluc
Subject: popup menus on right mouse click
Date 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?




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



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