Office 2007 - Ribbon XML and button layout

M

Mike Clayton

Hi,

I'm writing an addin for PowerPoint 2007 and I've got a custom ribbon tab
working with various groups, boxes and buttons, but I'm struggling with a
couple of the finer-grained aspects of layout as follows:

1) I've got the following fragment of CustomUI which currently displays some
built-in buttons on a group on a custom tab, but it's squashing the buttons
onto the first two rows of the group rather than spreading them out across
all three rows as per the built-in "Home -> Font" group.

<group id="grpFont" label="Font">
<box id="boxFont" boxStyle="horizontal">
<control idMso="Font" />
<control idMso="FontSize" />
<buttonGroup id="grpFontSize">
<control idMso="FontSizeIncrease" />
<control idMso="FontSizeDecrease" />
</buttonGroup>
</box>
<box id="boxFontFormat" boxStyle="horizontal">
<buttonGroup id="grpFontFormat">
<control idMso="Bold" />
<control idMso="Italic" />
<control idMso="Underline" />
</buttonGroup>
<buttonGroup id="grpParagraphAlign">
<control idMso="AlignLeft" />
<control idMso="AlignCenter" />
<control idMso="AlignRight" />
<control idMso="AlignJustify" />
</buttonGroup>
</box>
</group>

I've spent some time looking through the customUI.xsd file to see if I'm
missing an attribute which might control this, but I can't find anything that
helps.

2) How do I specify that an entire group should collapse down into a split
button if the application window is resized to a small width? With the above
xml the controls refuse to give up their screen estate and I get a scrollbar
wedge appearing on the sides of the ribbon. The built-in groups seem to
handle this fine, so again I might be overlooking an attribute somewhere.

I've seen that the Windows 7 ribbon xml has extra elements to specify sizing
policy and some other additional layout control, but I'm targetting a
corporate Windows XP environment with Office 2007 so I'm a bit stumped as to
how to fix this.

Any help would be appreciated.

Thanks,

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top