PC Review


Reply
Thread Tools Rate Thread

CommandBarPopUp and Com Addin

 
 
Kristy
Guest
Posts: n/a
 
      21st Jan 2004
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
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      21st Jan 2004
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Kristy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing CommandBarPopup when Moving Vista developed Excel Addin to XP machine Ed Sowell Microsoft Excel Programming 0 28th Jan 2009 01:02 AM
CommandBarPopup event? =?Utf-8?B?Um9iZXJ0IEcuIFNjaGFmZnJhdGg=?= Microsoft Outlook Program Addins 1 8th Oct 2007 04:21 PM
load CommandBarPopup Jim Microsoft Outlook Program Addins 0 15th Feb 2006 06:13 PM
focus on commandbarPopup vivek Microsoft Excel Programming 0 12th Jan 2004 07:02 PM
CommandBarPopup in Outlook Thomas J Microsoft Outlook Program Addins 0 27th Oct 2003 06:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:04 PM.