Your overall XML should now look like this:
size="large" onAction="conBoldSub" imageMso="HappyFace" />
size="large" onAction="conItalicSub" imageMso="Italic" />
size="large" onAction="conUnderlineSub" imageMso="Underline" />
onAction="MyCheckbox"
/>
onChange="MyChange"
/>
label="My Combo"
onChange ="OnChange"
getItemCount ="GetItemCount"
getItemLabel ="GetItemLabel"
/>
As with the edit box, there is anonChangeevent, but there are also agetItemCountevent
and agetItemLabelevent to define the combo box.
As before, copy and paste the XML into the Ribbon XML field of the USysRibbons table.
Exit the database and reload it. If you click Home in the menu bar and look at your custom
ribbon control, this now has a drop-down, but it is not populated.
Chapter 11: Working with the Ribbon 145