New Menu in Powerpoint

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

New Menu in Powerpoint
 
Chris Bowman




Posts: 15
Joined: 2005-02-15
Hi,

I am trying to add a new menu in Powerpoint.

I have created a new adxCommandBar and set the position to 'adxMsoBarMenuBar'. In both Powerpoint XP and 2003, the plugin fires an exception 'The parameter is incorrect' on startup.

Any suggestions?
Posted 28 Feb, 2005 08:45:22 Top
Dmitry Kostochko


Add-in Express team


Posts: 2740
Joined: 2004-04-05
Hi Chris,

Are you going to completely replace the standard menu bar with your own? Or do you need to add just one menu item?


Posted 28 Feb, 2005 09:53:31 Top
Chris Bowman




Posts: 15
Joined: 2005-02-15
I want to add and extra complete menu i.e.

FILE EDIT ... MyMenu
Posted 28 Feb, 2005 10:39:58 Top
Dmitry Kostochko


Add-in Express team


Posts: 2740
Joined: 2004-04-05
Hi Chris,

To do this:
- add a new TadxCommandBar component to your add-in module and set its CommandBarName property to 'Menu Bar'
- add a new TadxCommandBarPopup component to the Controls collection of this TadxCommandBar and set its OfficeID property to 30002 (the ID of the File menu item)
- add a new TadxCommandBarButton component you need to the popup's Controls collection

That's it.

This tool will probably be useful for you:
http://www.add-in-express.com/files/BuiltInControlsScanner.exe

Posted 28 Feb, 2005 11:33:15 Top
Chris Bowman




Posts: 15
Joined: 2005-02-15
Works great.

Thank you.
Posted 28 Feb, 2005 11:46:29 Top
Chris Bowman




Posts: 15
Joined: 2005-02-15
Argh!

It works in XP but NOT 2003. In addition, there are no buttons on my other toolbars (see previous thread).

I am using Delphi 5, Build 228 and MSO 2003 (SP1)
Posted 28 Feb, 2005 12:12:28 Top
Dmitry Kostochko


Add-in Express team


Posts: 2740
Joined: 2004-04-05
Hi Chris,

The test project is located here:
http://www.add-in-express.com/projects/adx-powerpoint-test.zip

I have just tested it with PowerPoint 2003 SP1. It is works.


Posted 28 Feb, 2005 12:34:09 Top
Dmitry Kostochko


Add-in Express team


Posts: 2740
Joined: 2004-04-05
Hi Chris,

Are there any news? Is the test project working?

Posted 01 Mar, 2005 11:52:10 Top
Guest


Guest


But if I want to add my own menu?
Posted 05 Mar, 2005 13:00:56 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
You can add a new menu.
Posted 06 Mar, 2005 04:57:33 Top