A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Novice: Adding a menu to current menu?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 28th 06, 07:28 PM posted to microsoft.public.outlook.program_addins
Peter
external usenet poster
 
Posts: 120
Default Novice: Adding a menu to current menu?

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
  #2  
Old September 28th 06, 08:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Novice: Adding a menu to current menu?

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" wrote in message
...
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


  #3  
Old September 29th 06, 07:12 PM posted to microsoft.public.outlook.program_addins
Peter
external usenet poster
 
Posts: 120
Default Novice: Adding a menu to current menu?

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" wrote in message
...
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



  #4  
Old September 29th 06, 07:26 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Novice: Adding a menu to current menu?

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" wrote in message
...
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" wrote in message
...
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





  #5  
Old October 2nd 06, 04:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Novice: Adding a menu to current menu?

And whatever was right-clicked or the selection that was right-clicked will
be in the Selection collection passed in that event. All context menus share
the ContextMenuClose event, so you also know when the context menu is
closing.

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


"Dmitry Streblechenko" wrote in message
...
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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2000 is crashing while adding right click context menu. Vinayakc Add-ins for Outlook 0 August 17th 06 05:08 PM
outlook menu view/current view is gray pauls Outlook - Using Contacts 0 August 16th 06 08:16 PM
Edit a Menu Shauna T Outlook - General Queries 1 May 4th 06 12:36 PM
adding a context menu in Outlook donald Add-ins for Outlook 6 May 3rd 06 02:49 PM
Adding Outlook Express to my start menu MP Boettger Outlook - General Queries 1 February 22nd 06 06:45 PM


All times are GMT +1. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.