how to capture outlook 2007 events

  • Thread starter Thread starter Ashish
  • Start date Start date
A

Ashish

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.
 
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.
 
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)
 
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.
 
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.
 
Back
Top