none
Ribbon Backstage RRS feed

  • Question

  • Hi

    I have an ribbon code.

    In Excel 2010 it shows fine. however the first button width is to small in Excel 2013.

    can someone tell me why and how to solve it?

    The code is only a part of the backstage and have also an ribbnon tab in it

    Jan

    <customUI  xmlns="http://schemas.microsoft.com/office/2009/07/customui" xmlns:GR="GR">
    	<backstage>
    		<tab id="tGR" label="GR">
    			<firstColumn>
    				<taskFormGroup id="tfgGR" label="GR">
    					<category id="c1" label="Open">
    						<task id="t1" label="Open">
    							<group id="gOpen" label="Open">
    								<topItems>
    									<button id="templ_d8_NL" style="large" label="TC Code 8 NL" imageMso="D" isDefinitive="true" onAction="RibOpenD8" getEnabled="enabletemplate" getVisible="VisibleTemplate" />
    									
    									<button id="templ_d9_NL" style="large" label="TC Code 9 NL" imageMso="_9" isDefinitive="true" onAction="RibOpenD9" getEnabled="enabletemplate" getVisible="VisibleTemplate" />
    								</topItems>
    							</group >
    						</task>
    					</category>
    				</taskFormGroup>
    			</firstColumn>
    		</tab>
    	</backstage>
    </customUI >


    • Edited by Jan212r Monday, October 24, 2016 6:33 AM
    Monday, October 24, 2016 6:30 AM

Answers

  • Hi

    We need to set the column width for the custom tab.

    You could set firstColumnMinWidth or firstColumnMaxWidth like the following. Then the text would normally display.

      <tab id="tGR" label="GR" firstColumnMinWidth="1000" firstColumnMaxWidth="1000">

    As for the reason that it shows fine in Office 2010. I think, it is because the default column width for the custom tab is bigger than in Office2013/2016.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Jan212r Sunday, October 30, 2016 5:20 AM
    Saturday, October 29, 2016 12:02 PM
    Moderator

All replies

  • Hi,

    What is your specific version of Office2013?

    Testing with Office2010/2013/2016, all the buttons are showing as picture below.

    Do you try to create a new project and test only these code?

    Tuesday, October 25, 2016 6:57 AM
    Moderator
  • Hi,

    It's not the buttons where there is a problem. It's the category  or the task that have a problem.

    Open and close must also be visible the second time.

    Jan



    • Edited by Jan212r Thursday, October 27, 2016 5:55 PM Photo
    Thursday, October 27, 2016 5:48 PM
  • Hi

    We need to set the column width for the custom tab.

    You could set firstColumnMinWidth or firstColumnMaxWidth like the following. Then the text would normally display.

      <tab id="tGR" label="GR" firstColumnMinWidth="1000" firstColumnMaxWidth="1000">

    As for the reason that it shows fine in Office 2010. I think, it is because the default column width for the custom tab is bigger than in Office2013/2016.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Jan212r Sunday, October 30, 2016 5:20 AM
    Saturday, October 29, 2016 12:02 PM
    Moderator
  • thanks

    that helped the column is bigger. however there seems to be a max of about 500.

    Also both info(min and max) must be there to see a difference.

    Jan


    • Edited by Jan212r Sunday, October 30, 2016 5:21 AM
    Sunday, October 30, 2016 5:13 AM