How to add an entry in Outlook 2010 'New items' ribbon section? - outlook

I'm updating an Outlook 2003 plugin to Outlook 2010, and am henceforth dealing with the ribbon.
I already know how to add a new group in the ribbon, via a ribbon.xml file.
But I don't know how to customize an existing ribbon, i.e. add a new entry in the 'New items' dropdown button.
I guess one can do it by knowing the right idMso's.
For what it's worth, the project is a .NET 4 VSTO one.
Any idea on this?
Something like this doesn't workn, the GroupMailNew group may be read only, after all:
<tab idMso="TabMail">
<group idMso="GroupMailNew">
<menu idMso="MailNewItemMenu">
<button id="fooID" label="Foobar"/>
</menu>
</group>
</tab>

I believe you'll find the answer here:
http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_NewItemsMenuforJournalModule
This specific example shows how to add a command to the New Items dropdown button.

Just in case the linked page becomes broken, here's the code:
<contextMenus>
<contextMenu idMso="MenuMailNewItem">
<button id="MyMenuMailNewItem"
label="MenuNewMailItem"
onAction="OnMyButtonClick"/>
</contextMenu>
</contextMenus>

Related

How can I add the Text Highlight Color control to a custom xml ribbon in PowerPoint?

I'm building a custom ribbon in PowerPoint and would like to include the Text Highlight Color Picker control on it. I've found an idMso called TextHighlightColorPicker, but it's not recognised by PowerPoint so I just get an error when I open it.
<control idMso="TextHighlightColorPicker" size="large" label=" " />
I've tried various other idMso with the word 'highlight' in but to no avail. I imagine it's simply not available for custom ribbons, but I thought I check to see if anyone knows, because it's seems strange that most of the other buttons are available but not that one.
Thanks in advance!
There is no such command available in PowerPoint 2016. You can find the list of commands available if you navigate to the Customize Ribbon on PowerPoint settings dialog:
Here you can find the list of all available controls. And if you hover the mouse over any entry you may find the idMso value which can be used in the code for building a custom UI.
I eventually found the idMso as per the instructions in Eugene Astafiev's answer, it turns out it is only avaiable in subscription versions. The id is "TextHighlightColorPickerLicense".

Remove right clicking quick access toolbar?

Is there a way to prevent users from right clicking the quick access toolbar? Either by unchecking an option or vba? Either by using I already unchecked Allow Default Shortcut Menus in the options, but it doesn't apply to the quick access toolbar.
Thanks!
So I needed to create a custom ribbon interface using the USysRibbons table. My code is below. All I did was basically clear everything on the ribbon and quick access toolbar and added back a single import from Excel button in the quick access toolbar. It's important that <ribbon startFromScratch="true"> has to be set to true.
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<qat>
<sharedControls>
<control idMso="ImportExcel" label="Import from Excel" enabled="true"/>
</sharedControls>
</qat>
</ribbon>
</customUI>

Add a custom button to an existing ribbon in Outlook 2010 and 2013

I want to customise the ribbon that is displayed when the "Home" tab is clicked in OUtlook 2010 and 2013.
Questions -
Is this possible? Or do I have to create a custom ribbon and cannot modify the existing ribbon?
If the existing ribbon can be modified, please can you'll direct me to links that can provide this information.
I absolutely have no clue where to start from with this. Any links, docs or samples will be helpful.
I've been going through msdn but it all speaks of custom ribbon and that doesn't fit my purpose. I need to modify the existing ribbon.
It is possible... by creating a custom ribbon which will in turn be added to the Home tab.
First, create a custom ribbon. Here's an example http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_Explorer
Then add:
idMso="TabMail"
to the tab tag on your XML. This will instruct Outlook to add your custom ribbon to Home tab.
Using the link's example, it would be like this:
<ribbon>
<tabs>
<tab id="MyTab"
idMso="TabMail"
getVisible="MyTab_GetVisible"
label="MyTab">
<group label="MyGroup" id="MyGroup">
<button id="MyButton"
size="large"
label="MyButton"
imageMso="HappyFace"
onAction="OnMyButtonClick"/>
</group>
</tab>
</tabs>
If you're using Visual Studio's designer instead of XML, set the ControlId property of your custom ribbon's tab to TabMail. Here's a walkthrough for custom ribbon creation with Visual Studio: http://msdn.microsoft.com/en-us/library/vstudio/bb386104(v=vs.100).aspx
And if you want to place your custom ribbon somewhere other than the Home tab, you'll need to find the locations's MSO ID. Microsoft provides a list which can be downloaded at http://www.microsoft.com/en-us/download/details.aspx?id=6627
Yes, an existing ribbon can be modified. Follow the steps given below to customize an existing ribbon in Outlook 2010:
Open Outlook 2010.
Go to the top of the Ribbon and click the Office Button
Click Outlook and then click on Options button.
In the left pane, select Customize Ribbon.
In the right pane, find the desired tab in the list of available tabs and expand it.
Use the list of available commands and the Add/Remove buttons to
customize the tab.
Click the OK button and you will be done.

Create a custom column( hyperlink type) in sharepoint 2010 using Visual Studio 2010

I want to create a custom column in Sharepoint 2010 using VS 2010. When user click on this hyperlink it should open in modal popup. Please guide me. How can I achive this?
Declare the field as below
<Field Type="URL" Format="Hyperlink" Name="MyLinkName" ID="{GUID}" DisplayName="MyLinkDisplayName" Required="TRUE" Group="Custom Columns" />
Set 'Type' as "URL" and 'Format' to "Hyperlink" .
*Generate a GUID from VS and add it to the ID attribute. (I removed my GUID)
How to generate a GUID - Click Here
I dont know about modal popups. According to what I read, its a javascript.
So in the field definition you can add the javascript to the "NavigationUrl" attribute as below.
NavigateUrl="javascript:alert('Hello')"
Not sure whether it solved your problem...

Visual Studio Form Editor: How do I add title text-style mouseover to a button?

I have a System.Windows.Forms.Button control, and I want to add a hover-text explanation of what the button will do. I were writing a webapp, the answer to my question would be approximately this easy:
<input type="button" title="This is the answer" />
I'm using Visual Studio 2008 Express. I've checked all the properties I could find for this Button, but I don't see anything that does what I want. Google searches turned up 50% confusing, elaborate answers, and the other half were tauntingly easy HTML examples.
You can use a Tooltip Control to achieve the desired effect.
Just initialize the tooltip values you want on the controls you want.
...
toolTip1.SetToolTip(button1, "This is the answer");
...
Actually, you want to use the ToolTip Component (Windows Forms) at http://msdn.microsoft.com/en-us/library/he23h308.aspx
How to: Set ToolTips for Controls on a Windows Form at Design Time
at
http://msdn.microsoft.com/en-us/library/s894w4aa.aspx

Resources