RadRibbonForm title text getting cut off

3 posts, 1 answers
  1. Jason
    Jason avatar
    14 posts
    Member since:
    Oct 2011

    Posted 12 Jun 2013 Link to this post

    Sometimes when we set the text of the RadRibbonForm it gets cut off and has "..." added to the end. It's not consistent though, that's what it making it hard to diagnose. It also doesn't seem to matter how many characters long the text is - the last 10-15 pixels of the text gets replaced with "...".

    Is there any property that can be set to change this behavior so that all of the text always shows on the title bar?
  2. Answer
    Stefan avatar
    2908 posts

    Posted 17 Jun 2013 Link to this post

    Hi Jason,

    Thank you for writing.

    I have tested the described scenario and found what is causing this behavior. By default we use the GDI+ to measure the text, however, GDI+ is a known suspect for reporting wrong sizes of the text and this is also the case here. 

    Luckily, you can easily force the element to use GDI instead of GDI+ by setting a single property and this should improve the rendering in this case:
    this.radRibbonBar1.RibbonBarElement.RibbonCaption.CaptionLayout.CaptionTextElement.UseCompatibleTextRendering = false;

    Let me know how this works for you.

    RadChart for WinForms is obsolete. Now what?
  3. Marc
    Marc avatar
    48 posts
    Member since:
    Mar 2017

    Posted 16 Feb 2018 in reply to Stefan Link to this post

    Some years later, but I want to let you, that it works for me.
    Maybe this will help someone else, too.


Back to Top