Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The Ribbon XML shown in Listing Listing 10-39 is very similar to the XML code shown in Listing 10-38, except for using different id values for the tab, group, and buttons. You should always use unique id values for each addin you write so that your user interface is completely independent of any other addin's user interface.
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns = "http://schemas.microsoft.com/office/2006/01/customui"
onLoad = "Ribbon_OnLoad" >
<ribbon>
<tabs>
<tab id="cstaskmantab" label="Task Manager" visible="true"
insertAfterMso="TabTask" >
<group id="csgrouptask" label="Task Manager" visible="true">
<button id="cstasks1" size="normal" label="Show Related Tasks"
onAction="CS_Action" getImage="CS_GetImage" />
<button id="cstasks2" size="normal" label="Add Child Task"
onAction="CS_Action" getImage="CS_GetImage" />
</group>
</tab>
</tabs>
</ribbon>
</customUI> |