Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / July 2009

Tip: Looking for answers? Try searching our database.

how to capture outlook 2007 events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ashish - 28 Jul 2009 16:01 GMT
1. How to capture events for submenus which comes under "Other Actions"
popup menu on toolbar when open a mail in outlook 2007.
There are some submenus under "Other Actions" popup menu like
Edit Message, Recall This Message, Save Attachments etc

For outlook 2003 i can capture these submenus using
ActiveInspector->ActiveManuBar("Actions"). They comes under "Actions" popup
menu in 2003.
But it's not working in 2007.

2. To capture context menu operations for mail items we use
ActiveExplorer->CommandBars->Item("Context Menu");

How to capture context menu operations for folders. Above is working for
mail items not for folders.
Ken Slovak - [MVP - Outlook] - 28 Jul 2009 18:23 GMT
Each one of those ribbon controls has an idMso that you can look up in the
XML schema for that type of Outlook item. You do the same using those idMso
tags as you would with any control on the ribbon to repurpose it or handle
callbacks for it. No difference at all.

In Outlook 2007 there are specialized content menu objects. Use them. Look
in the Object Browser under the Application object for a complete list. For
folder context menus use the FolderContextMenuDisplay() event.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> 1. How to capture events for submenus which comes under "Other Actions"
> popup menu on toolbar when open a mail in outlook 2007.
[quoted text clipped - 11 lines]
> How to capture context menu operations for folders. Above is working for
> mail items not for folders.
Ashish - 29 Jul 2009 09:01 GMT
Thanks for foldercontextmenu.

About first question idMSO is not clear. Should i search the submenu in
Standard menu bar or Menu bar or somewhere else?
I want to capture the event when click on any submenu under "Other Actions"
popup menu in mail item(active inpector)
> Each one of those ribbon controls has an idMso that you can look up in the
> XML schema for that type of Outlook item. You do the same using those
[quoted text clipped - 20 lines]
>> How to capture context menu operations for folders. Above is working for
>> mail items not for folders.
Ashish - 29 Jul 2009 11:14 GMT
where to see XML schema for that type of Outlook item.

For outlook 2007 when try to capture event for any submenu under "other
actions" popup menu
ActiveInspector->ActiveManuBar("Actions").  give all submenus. I register
any submenu but when i click on submenu which was registered, its click
event not called. In 2003 it's called successfully. So i think all submenus
under "other actions" popup menu will register by some different way in
2007.  I did not find "other actions" popup menu under statndard or active
menu bar.

> Each one of those ribbon controls has an idMso that you can look up in the
> XML schema for that type of Outlook item. You do the same using those
[quoted text clipped - 20 lines]
>> How to capture context menu operations for folders. Above is working for
>> mail items not for folders.
Ken Slovak - [MVP - Outlook] - 29 Jul 2009 15:20 GMT
You are confusing menus/toolbars and the ribbon. Everything in an Inspector
in Outlook 2007 is a ribbon control. You need to download the XML schemas
for the ribbon from the Office Development center at MSDN and study those
schemas to work with the ribbon. You will find the tab, group and control
names in those schemas and that's what you use as the idMso's.

If you go to customize the QAT and hover over the control you want to access
it shows the idMso for you, that's an alternate way to find those
properties. However if you plan to develop for the ribbon you really should
have downloaded and studied the available documentation on it so you know
what you're doing.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> where to see XML schema for that type of Outlook item.
>
[quoted text clipped - 6 lines]
> way in 2007.  I did not find "other actions" popup menu under statndard or
> active menu bar.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.