how can I hide a ribbon item on project server 2010? - sharepoint-2010

how can I hide a ribbon item (specifically Ribbon.ContextualTabs.ProjectCenter.Home.ChangeProjectType) on project server 2010?
I followed this link and it hides a ribbon item I want to, but it affects the functionality of the other ribbon items in the Tab; in a way that buttons don't be clicked and Comboboxes don't be filled. Here is my command:
<CustomAction
Id="Ribbon.ContextualTabs.ProjectCenter.Home.ChangeProjectType"
Location="CommandUI.Ribbon"
Title="Hides the ChangeProjectType button in the Project Center ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.ContextualTabs.ProjectCenter.Home.ChangeProjectType"/>
</CommandUIDefinitions>
</CommandUIExtension>

Related

Is it possible to add new items into built-in RibbonGallery control in Outlook

Is there any way to add new buttons into the existing Move to folder dropdown (Gallery control with idMso="MoveToFolderGallery") in Outlook VSTO addin?
I was able to find Group containing it, and hide it with
<group idMso="GroupMoveActions" visible="false">
</group>
and add the same Move gallery to my group with changed name
<gallery idMso="MoveToFolderGallery" size="large"
label="zzz">
<button id="b1" label="My button"/>
</gallery>
But the button I have added does not appear (when I do the same with my own gallery, it appear).
Maybe there is a way to get RibbonGallery instance for the existing gallery and modify Items collection?
https://learn.microsoft.com/en-us/dotnet/api/microsoft.office.tools.ribbon.ribbongallery.items?view=vsto-2017
You can't modify built-in controls. But you can add controls into your own custom UI (or just rebuild the whole ribbon from scratch) where you can add additional items.
Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

VBA / VSTO > Powerpoint > Hide Secondary Context Menu

I have written a VSTO addin for Poweproint.
I am able to hide/disable most existing context menu buttons using the CustomUI XML config.
But cannot find how to access the secondary context menu (see below).
Not the whole thing. Just the top part (Style/Crop/New Comment)
What is the idMso for the mini context menu?
Ideally I would like to hide the mini context menu.

VSTO Custom XML ribbon tab contains a group not specified in the XML

I have a custom XML ribbon tab in a VSTO Excel Add-in. The XML for the custom ribbon tab is below.
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="EMP">
<group id="EMPForms" label="Measurement Study">
<button id="EMPStudy"
label="EMP Study"
screentip="EMP Data"
supertip="Measurement Study Data"
onAction="OnEMPData"/>
<button id="StudySetup"
label="Study Setup"
screentip="Setup"
supertip="Measurement Study Setup"
onAction="OnStudySetup"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
There is only one group specified in the XML.
When I run the Add-in, I get two groups. The first is "Custom Toolbars". The second is "Measurement Study". The "Custom Toolbars" is not specified in the XML below.
Is there a way to prevent groups or controls from other ribbon tabs from appearing on a custom ribbon tab?
Try to check out other add-ins and Excel documents (they may contain a custom ribbon UI).
There is no way to hide controls or groups on a custom ribbon tab if you don't know their IDs. The best what you can do is to use the startFromScratch attribute which allows hiding the built-in ribbon controls. Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
The source of the "Custom Toolbar" group on my custom ribbon is the "Team Foundations Add-in".
Below are the steps that resolved this issue.
Start Excel.
Go to File | Options.
Click the "Add-ins" item in the list box on the left-hand side of the Excel Options dialog.
Select the "COM Add-ins" item of the Manage combo box.
Click the "Go..." button.
Clear the check box for the "Team Foundation Add-in" entry and click the "OK" button.
The "Custom Toolbars" group is no longer in the custom ribbon tab.

Can there be two ribbons in an Outlook VSTO Add-in?

I'm using the visual designer and have one custom ribbon with 12 or so buttons on it. I'd like to add the most important button from that ribbon onto "TabMail" so that I can use it more easily.
I have added another ribbon via the "add..." dialog, then ribbon, and then add a test button to it. When I then run the solution (from Visual Studio, debug or release) it seems to pick one ribbon or another to show - either leaving me missing a button, or missing 12!
What am I doing wrong?
I've just found that what I should be using is two Tabs, not two Ribbons. Each tab can appear wherever you want, rather than each having to come up as a separate custom tab.
Here's the setup inside visual studio:
Shown below is "My Button" in blue, and in red is "My Tab"

Lock ribbon button in VB.NET

I am developing a application in VB.NET. The user interface contains a ribbon tab with a few ribbon buttons. On each ribbon button click event, the application will execute a process.
When a process being executed, I want to lock the click event of other ribbon buttons. It means, the user should not be able to pick the other ribbon buttons.
I do not find the lock property for ribbon buttons. To avoid the button getting grey, I do not want to disable the button. please provide your suggestion.