RibbonButton Text Force MultiLine

Posted by: mworland on 16 April 2019, 12:54 pm EST

    • Post Options:
    • Link

    Posted 16 April 2019, 12:54 pm EST - Updated 4 October 2022, 1:18 am EST

    I have a C1Ribbon.RibbonButton that I would like to have the text be multiline. If I set the TextImageRelation to Automatic, it seems to split nearly all words to a new line, for example, Save As would now be two lines.

    If I set TextImageRelation to ImageAboveText, I can’t seem to get multiline at all. Is there a way to force multiline when I want it and a way to force a single line when I don’t want it.

    In the attached Image the first Save As button is using Automatic, If in Automatic, how do I tell it not to split the text into multi-lines. The second Save As button is what I want. The Third button shows the correct text, but the image is too high. The fourth button has the correct image location, but I can’t get the text to be multilined. Is there a way around this.

    Thanks

  • Posted 17 April 2019, 5:28 am EST

    Hello,

    Please note that in case of Automatic TextImageRelation value, area taken by the button text depends on the area taken by the image corresponding to the button as well the length of the text. Refer the attached application for detailed explanation of the same in various scenarios.

    Setting TextImageRelation simply specifies the relation between text and image, as per our choice. The image is rendered differently (in terms of the distance from the tab header) based on the choice made as the Automatic option lets the text to render flexibly.

    It is not possible to change this behavior or to force a RibbonButton to have MultiLine text.

    Best Regards,

    Esha

    C1Ribbon.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels