How to add menu items to the Outlook main menu (Edit, Tools, etc.)

Add-in Express™ Support Service
That's what is more important than anything else

How to add menu items to the Outlook main menu (Edit, Tools, etc.)
 
Andrei Jugovic




Posts: 59
Joined: 2007-02-08
Hi!

How is it possible to add new menu items to the Outlook main manu?

I am using ADX 2007, Delphi 2006 and Outlook 2007.

Thanks
Andrei
Posted 16 Apr, 2007 08:23:02 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Andrei,

Yes, it is possible. Drop the TadxOlExplorerCommandbar component to your add-in module and set its CommandBarName property to 'Menu Bar'. This component will be connected to the Outlook explorer main menu.


P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.

Posted 16 Apr, 2007 11:00:10 Top
Andrei Jugovic




Posts: 59
Joined: 2007-02-08
Thank you very much for your help, this works fine. I was able to add a new menu to the menu bar. But this was not exactly what I was looking for. Maybe my question was not explicit enough :-)

I would like to add new (sub-)menu items to the existing menus in the menu bar like Edit or Tools to create something like Edit\DoSomeWork.

I already tried to use "Edit" or "Tools" in the CommandBarName property but this resulted in new tool bars with the name Edit or Tools...

Thank you very much!
Andrei
Posted 17 Apr, 2007 07:07:03 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Andrei,

You need to add the TadxCommandBarPopup control to the Controls collection of the TadxOlExplorerCommandbar component named 'Menu Bar'. Then you need to set the OfficeID property to one of the following values:

File - 30002
Edit - 30003
View - 30004
Go - 30328
Tools - 30007
Actions - 30131
Help - 30010

Also, you can download the Built-in Controls Scanner tool to see all IDs of native command bar controls:
http://www.add-in-express.com/downloads/controls-scanner.php

Posted 18 Apr, 2007 07:28:02 Top
Brian Post




Posts: 84
Joined: 2007-09-06
FYI As this wasn't obvious from what was said.

You need to add a popop named &File to your TadxOlExplorerCommandbar or TadxCommandBar & assign it's OfficeID to 3002
Then add button with it's AfterID set to 748 and Caption of "Adx Button" & style of adxMsoButtonCaption.

This will Create the following menu Item File\Adx Button which will appear after the File\Save menu.
Posted 11 Sep, 2007 01:07:06 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Brian,

Thank you for your post.

You need to add a popop named &File to your TadxOlExplorerCommandbar or TadxCommandBar & assign it's OfficeID to 3002


Correction: The File menu item has OfficeID = 30002 but not 3002!

Posted 11 Sep, 2007 08:04:39 Top