Re: event with commanbar button right_click?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If this a DotNet question? What CommandBar?

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


"RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx> wrote in message
news:OttrgYrzFHA.904@xxxxxxxxxxxxxxxxxxxxxxx
> Would it somehow be possible to trigger an event on right-clicking a
> commandbar button?
>
> These buttons are created like this:
>
> Public cb2 As CommandBar
>
> Set cb2 = CommandBars.Add("MyOptionsPopUp", _
> msoBarPopup, _
> MenuBar:=False, _
> temporary:=True)
>
> With cb2
> Set FileControl = .Controls.Add(Type:=msoControlPopup)
> With FileControl
> .Caption = "File"
> With .Controls.Add(Type:=msoControlButton)
> .Caption = "Open report (F3 OR O from the treeview)"
> .OnAction = "OpenReport"
> .FaceId = 23
> End With
>
> etc.
>
>
> The purpose is to trigger context sensitive help on the menu.
>
>
> RBS
>


.


Quantcast