CommandBarPopUp and Com Addin

K

Kristy

Hi

As part of a com addin I've written from Outlook 2000 and XP I have
added a CommandBarPopUp button to a customised toolbar. I have
successfully created the button and can click on any of the options
and get the required results.

However... whenever I click on the button it will show all the options
for me to select one, what I want to do is have the option that is at
the beginning of the group as the default, and only see the other
options when I specifically click the down arrow, like what happens
when you select "New" on the standard toolbar").

I can't seem to find out how to do this, I can see that when I hover
over my button, the button and the down arrow are all one thing,
whereas when you hover over "New", you get the words "New" then a
vertical separtor before the arrow, this must be an option somewhere
does anyone know?

Kristy
 
K

Ken Slovak - [MVP - Outlook]

New would most likely be a msoControlSplitDropdown type control, which
is not supported in Outlook automation for you to add. You would have
to simulate what you want with 2 controls side-by-side.

You can dynamically add controls to your dropdown control as you
create it and set the order of the subitems to what you want at that
time. Then set the control you want as the default by calling its
SetFocus method.
 

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