| 
				                                 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                 |   
                 
         | 
  
  
        | 
				                                 Dmitry Kostochko                				 
                					 					 
                
                
                
                 Add-in Express team                 
                 
                
                
                                 
                                        Posts: 2887 
                                                        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.
 
                  |   
                 
         | 
  
  
        | 
				                                 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                 |   
                 
         | 
  
  
        | 
				                                 Dmitry Kostochko                				 
                					 					 
                
                
                
                 Add-in Express team                 
                 
                
                
                                 
                                        Posts: 2887 
                                                        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
 
                  |   
                 
         | 
  
  
        | 
				                                 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.                 |   
                 
         | 
  
  
        | 
				                                 Dmitry Kostochko                				 
                					 					 
                
                
                
                 Add-in Express team                 
                 
                
                
                                 
                                        Posts: 2887 
                                                        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!
 
                  |   
                 
         |