popup menus on right mouse click |
Post Reply |
Author | |
skluc
Newbie Joined: 19 May 2004 Status: Offline Points: 7 |
Post Options
Thanks(0)
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? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |