CommandBarPopup event?

  • Thread starter Robert G. Schaffrath
  • Start date
R

Robert G. Schaffrath

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top