Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Novice: Adding a menu to current menu?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Novice: Adding a menu to current menu?
Peter 28.09.2006 17:28:02
Hello,

Thanks for reviewing my question. I am just starting out and so I am not
sure if this is possible but I would like to know if you can add to an
existing context-sensitive menu.

When you are in Outlook and have your list of emails in front of you, you
can right click on an email and menu (Open, Print, Reply, Forward, etc.) is
displayed. I would like to know if its possible to add my own menu item to
this menu? And of course if true, how do you go about doing this?

Many Thanks
Peter
Re: Novice: Adding a menu to current menu?
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 28.09.2006 18:18:08
It's possible as a hack that mostly works (it's supported fully in Outlook
2007), but the hack doesn't tell you what was right-clicked on. You can use
Explorer.Selection to tell what was selected in the view but that may not be
the same as the item the user right-clicked on.

See http://www.outlookcode.com/codedetail.aspx?id=526 for an example.

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


"Peter" <Peter[ at ]discussions.microsoft.com> wrote in message
news:1358991A-9086-473A-9266-5B11C32CBB73[ at ]microsoft.com...
[Quoted Text]
> Hello,
>
> Thanks for reviewing my question. I am just starting out and so I am not
> sure if this is possible but I would like to know if you can add to an
> existing context-sensitive menu.
>
> When you are in Outlook and have your list of emails in front of you, you
> can right click on an email and menu (Open, Print, Reply, Forward, etc.)
> is
> displayed. I would like to know if its possible to add my own menu item
> to
> this menu? And of course if true, how do you go about doing this?
>
> Many Thanks
> Peter

Re: Novice: Adding a menu to current menu?
Peter 29.09.2006 17:12:01
Ken,

Thanks for the helpfull info.

[Quoted Text]
>>>(it's supported fully in Outlook 2007),

I am actually trying out the Outlook 2007. Where can I find out on how to
do it in Outlook 2007?

Thanks
Peter

"Ken Slovak - [MVP - Outlook]" wrote:

> It's possible as a hack that mostly works (it's supported fully in Outlook
> 2007), but the hack doesn't tell you what was right-clicked on. You can use
> Explorer.Selection to tell what was selected in the view but that may not be
> the same as the item the user right-clicked on.
>
> See http://www.outlookcode.com/codedetail.aspx?id=526 for an example.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Peter" <Peter[ at ]discussions.microsoft.com> wrote in message
> news:1358991A-9086-473A-9266-5B11C32CBB73[ at ]microsoft.com...
> > Hello,
> >
> > Thanks for reviewing my question. I am just starting out and so I am not
> > sure if this is possible but I would like to know if you can add to an
> > existing context-sensitive menu.
> >
> > When you are in Outlook and have your list of emails in front of you, you
> > can right click on an email and menu (Open, Print, Reply, Forward, etc.)
> > is
> > displayed. I would like to know if its possible to add my own menu item
> > to
> > this menu? And of course if true, how do you go about doing this?
> >
> > Many Thanks
> > Peter
>
>
Re: Novice: Adding a menu to current menu?
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 29.09.2006 17:26:10
Trap the Application.OnItemContextMenuDisplay. In your implementation of the
OnItemContextMenuDisplay event handler, add your button to the command bar
passed in the CmdBar parameter.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Peter" <Peter[ at ]discussions.microsoft.com> wrote in message
news:01D46875-D740-4CA5-9EBB-F8032D8D3338[ at ]microsoft.com...
[Quoted Text]
> Ken,
>
> Thanks for the helpfull info.
>
>>>>(it's supported fully in Outlook 2007),
>
> I am actually trying out the Outlook 2007. Where can I find out on how to
> do it in Outlook 2007?
>
> Thanks
> Peter
>
> "Ken Slovak - [MVP - Outlook]" wrote:
>
>> It's possible as a hack that mostly works (it's supported fully in
>> Outlook
>> 2007), but the hack doesn't tell you what was right-clicked on. You can
>> use
>> Explorer.Selection to tell what was selected in the view but that may not
>> be
>> the same as the item the user right-clicked on.
>>
>> See http://www.outlookcode.com/codedetail.aspx?id=526 for an example.
>>
>> --
>> Ken Slovak
>> [MVP - Outlook]
>> http://www.slovaktech.com
>> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
>> Reminder Manager, Extended Reminders, Attachment Options
>> http://www.slovaktech.com/products.htm
>>
>>
>> "Peter" <Peter[ at ]discussions.microsoft.com> wrote in message
>> news:1358991A-9086-473A-9266-5B11C32CBB73[ at ]microsoft.com...
>> > Hello,
>> >
>> > Thanks for reviewing my question. I am just starting out and so I am
>> > not
>> > sure if this is possible but I would like to know if you can add to an
>> > existing context-sensitive menu.
>> >
>> > When you are in Outlook and have your list of emails in front of you,
>> > you
>> > can right click on an email and menu (Open, Print, Reply, Forward,
>> > etc.)
>> > is
>> > displayed. I would like to know if its possible to add my own menu
>> > item
>> > to
>> > this menu? And of course if true, how do you go about doing this?
>> >
>> > Many Thanks
>> > Peter
>>
>>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net