G
Greg Maxey
Posting here for lack of a better place I suppose.
If you look at the built-in Ribbon control "Font" in the "GroupFont" of the
Home tab you will notice that the control field is wide enough to accomodate
all of the font names in the the font list.
If you add this built-in control to a custom tab\group the control appears
much narrower and so many of the font names are cutoff.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabNew" label="My Tab">
<group id="Grp1">
<comboBox idMso="Font" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
If I to add the attribute sizeString to the XML script
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabNew" label="My Tab">
<group id="Grp1">
<comboBox idMso="Font" sizeString="XXXXXXXXXXXXXXXXXXXXXXXXXX" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Word throws an error when the ribbon XML attempts to load stating "Some
properties of built-in controls can not be modifed "Font"
The ribbon modification then appears and the Font control is still narrow.
If some of the MS technical gurus are browsing this group then I would be
interested to know why the control behaves as it does. If it is so wide in
the GroupFont control then why isn't it that same width when inserted in a
custom control?
Thanks.
If you look at the built-in Ribbon control "Font" in the "GroupFont" of the
Home tab you will notice that the control field is wide enough to accomodate
all of the font names in the the font list.
If you add this built-in control to a custom tab\group the control appears
much narrower and so many of the font names are cutoff.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabNew" label="My Tab">
<group id="Grp1">
<comboBox idMso="Font" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
If I to add the attribute sizeString to the XML script
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabNew" label="My Tab">
<group id="Grp1">
<comboBox idMso="Font" sizeString="XXXXXXXXXXXXXXXXXXXXXXXXXX" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Word throws an error when the ribbon XML attempts to load stating "Some
properties of built-in controls can not be modifed "Font"
The ribbon modification then appears and the Font control is still narrow.
If some of the MS technical gurus are browsing this group then I would be
interested to know why the control behaves as it does. If it is so wide in
the GroupFont control then why isn't it that same width when inserted in a
custom control?
Thanks.