Add new ribbon tab within Attachment Tools tab - Outlook 2010 and 2013

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

Add new ribbon tab within Attachment Tools tab - Outlook 2010 and 2013
 
May Wolfgang


Guest


I want to add a ribbon tab(with a ribbon button) in the Attachment Tools tab. Is there any possibility to do this ?
Posted 12 Dec, 2013 04:22:07 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Wolfgang,

This is how you add a tab to that tabset:

// 
// adxRibbonTab1
// 
this.adxRibbonTab1.Caption = "adxRibbonTab1";
this.adxRibbonTab1.Context = "Outlook.TabSetAttachments";
this.adxRibbonTab1.Controls.Add(this.adxRibbonGroup1);
this.adxRibbonTab1.Id = "adxRibbonTab_a0565cf6ec22414487e2a8b7a0e14acc";
this.adxRibbonTab1.Ribbons = AddinExpress.MSO.ADXRibbons.msrOutlookExplorer;
// 
// adxRibbonGroup1
// 
this.adxRibbonGroup1.Caption = "adxRibbonGroup1";
this.adxRibbonGroup1.Controls.Add(this.adxRibbonButton1);
this.adxRibbonGroup1.Id = "adxRibbonGroup_a26073817d364dc2a7d0a17132e88025";
this.adxRibbonGroup1.ImageTransparentColor = System.Drawing.Color.Transparent;
this.adxRibbonGroup1.Ribbons = AddinExpress.MSO.ADXRibbons.msrOutlookExplorer;
// 
// adxRibbonButton1
// 
this.adxRibbonButton1.Caption = "adxRibbonButton1";
this.adxRibbonButton1.Id = "adxRibbonButton_caac48bb9a42473790fae3e683d90c42";
this.adxRibbonButton1.ImageTransparentColor = System.Drawing.Color.Transparent;
this.adxRibbonButton1.Ribbons = AddinExpress.MSO.ADXRibbons.msrOutlookExplorer;


This is how you add a custom group to the tab Attachments:

// 
// adxRibbonTab1
// 
this.adxRibbonTab1.Caption = "adxRibbonTab1";
this.adxRibbonTab1.Context = "Outlook.TabSetAttachments";
this.adxRibbonTab1.Controls.Add(this.adxRibbonGroup1);
this.adxRibbonTab1.Id = "adxRibbonTab_a0565cf6ec22414487e2a8b7a0e14acc";
this.adxRibbonTab1.IdMso = "TabAttachments";
this.adxRibbonTab1.Ribbons = AddinExpress.MSO.ADXRibbons.msrOutlookExplorer;
// 
// adxRibbonGroup1
// 
this.adxRibbonGroup1.Caption = "adxRibbonGroup1";
this.adxRibbonGroup1.Controls.Add(this.adxRibbonButton1);
this.adxRibbonGroup1.Id = "adxRibbonGroup_a26073817d364dc2a7d0a17132e88025";
this.adxRibbonGroup1.ImageTransparentColor = System.Drawing.Color.Transparent;
this.adxRibbonGroup1.Ribbons = AddinExpress.MSO.ADXRibbons.msrOutlookExplorer;
// 
// adxRibbonButton1
// 
this.adxRibbonButton1.Caption = "adxRibbonButton1";
this.adxRibbonButton1.Id = "adxRibbonButton_caac48bb9a42473790fae3e683d90c42";
this.adxRibbonButton1.ImageTransparentColor = System.Drawing.Color.Transparent;
this.adxRibbonButton1.Ribbons = AddinExpress.MSO.ADXRibbons.msrOutlookExplorer;



Andrei Smolin
Add-in Express Team Leader
Posted 12 Dec, 2013 05:45:49 Top
May Wolfgang


Guest


Thank you very much, it works fine!
Posted 13 Dec, 2013 04:01:02 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 13 Dec, 2013 04:13:34 Top