Combobox

ComboBox

Sample Ribbon XML file:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon startFromScratch="false">
        <tabs>
            <tab id="MyTab" label="My Tab">
                <group id="MyGroup" label="My Group">
                    <labelControl id="myLabel1" label="Sample:" />
                    <labelControl id="myLabel2" label="Combobox" />
                    <comboBox id="Combo1" 
                              label="ComboBox"
                              onChange="MyComboBoxCallbackOnChange">
                        <item id="item1" label="one" imageMso="_1" />
                        <item id="item2" label="two" imageMso="_2" />
                        <item id="item3" label="three" imageMso="_3" />
                    </comboBox>
                 </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>




Attributes: enabled, id, idMso, idQ, image, imageMso,
                 insertAfterMso, insertAfterQ, insertBeforeMso, insertBeforeQ,
                 label, maxLengthscreentip, showItemImage, showImage,
                 showLabel, sizeStringsupertip, tagvisible

                 Added in O2010: invalidateContentOnDrop

Callbacks: getEnabled, getImage, getItemCount, getItemID,
                  getItemImage, getItemLabel, getItemScreentip,
                  getItemSupertip, getKeytipgetLabel,  getScreentip,
                  getShowImagegetShowLabel, getSizegetSupertip,
                  getTextgetVisible, onChange

You can find this sample in Sample DB 1