CommandBarPopup event?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Outlook add-in and I am trying to receive a notification that my
CommandBarPopup has been clicked so that I can adjust the various menu items
before they are displayed. Basically I am looking for an event equivalent to
the "DropDownOpening" event found in a ToolStripMenuItem. Does
Outlook/PIA/Office Core support such an event? The only event I use to date
is the CommandBarButton "Click" event but there does not appear to be any
equivalent for the menu itself.
 
There are no events like that for a popup. If you want to create a dynamic
menu structure for your popup menu you have to use a wrapper class for each
button you want there and a collection of buttons that get shown in the
popup. That has to be done when you create or re-create your popup control
and its collection of buttons.
 
Back
Top