Adding custom contextual tabs to Ribbon UI

I'm using C# to build an add-in for PowerPoint 2007.  When I select a shape in the presentation, a contextual tab "Drawing Tools" which contains the tab "Format" appears.

1. Without any external libraries, is it possible to add my own custom contextual tab that would appear next to "Drawing Tools"? If not, are there any workarounds that would make the tab appear only when a shape is selected e.g. having a custom tab appear next to "Format" under "Drawing Tools"?

2. If 1. is not possible, are there any external libraries that would help me achieve this effect? Which freeware library would you recommend? Which commercial library would you recommend?

Thanks.

There'd have to be a way, but I've never attempted to add a contextual tab to the ribbon as I usually stick to really simple stuff in the Custom UI Editor. Here's a thread that could help.

 

http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/135030c5-9abb-4773-8ecf-5b76cef6ee15

 

Adding a class element to xml... sounds tricky.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi,

You can add your own contextual tab to the Drawing tools tab set with this ribbon xml.

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon>
    <contextualTabs>
      <tabSet idMso="TabSetDrawingTools">
        <tab id="tabCustomFormatting" label="Additional Formatting">
          <group id="ctg1" label="My Formatting">
          </group>
        </tab>
       </tabSet>
    </contextualTabs>
  </ribbon>
</customUI>

 


Regards, Shyam Pillai. http://skp.mvps.org
Regards
Shyam Pillai

http://skphub.com

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi,

You can add your own contextual tab to the Drawing tools tab set with this ribbon xml.

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon>
    <contextualTabs>
      <tabSet idMso="TabSetDrawingTools">
        <tab id="tabCustomFormatting" label="Additional Formatting">
          <group id="ctg1" label="My Formatting">
          </group>
        </tab>
       </tabSet>
    </contextualTabs>
  </ribbon>
</customUI>

 

 


Regards, Shyam Pillai. http://skp.mvps.org


Thanks!

Is it possible to change the name "Drawing Tools" to another of my choice?

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I don't think so.
Regards, Shyam Pillai. http://skp.mvps.org
Regards
Shyam Pillai

http://skphub.com

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks!

Is it possible to change the name "Drawing Tools" to another of my choice?


I think the only way to do that would be to create a new tab, duplicating the buttons on the "Drawing Tools" giving the new tab your own name, and hiding the normal "Drawing Tools" tab.

Not really a quick fix, but at least you should get what you want.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Not sure you can create new contextual tabs.
Cheers

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Speaking from dangerous ignorance...

Page 438 of RibbonX: Customizing the Office 2007 Ribbon - by Robert Martin, Ken Puls, and Theresa Hennig discusses creating your own contextual tabs. I haven't tried it, but other things in this book have worked for me.
Volunteering to "pay forward" the help I've received in the Microsoft user community.


Charles Kenyon
Sun Prairie, Wisconsin
wordfaq[at]addbalance[dot]com

Legal site: https://addbalance.com

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

You can certainly add your own tabs to existing contextual tabs,
So for example Drawing Tools has the Format tab by default, to this you could add your own tab.

What I don't think you can do is create the initial contextual tab.
Cheers

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Sorry, I read further. The ability to create separate contextual tabs where you are setting your own context is apparently limited to Access. Not Word, Excel, or Powerpoint.
Volunteering to "pay forward" the help I've received in the Microsoft user community.


Charles Kenyon
Sun Prairie, Wisconsin
wordfaq[at]addbalance[dot]com

Legal site: https://addbalance.com

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 1, 2021 Views 71 Applies to: