RadRibbonForm title text getting cut off

2 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
    Admin
    Stefan avatar
    2890 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.
     

    Regards,
    Stefan
    Telerik
    RadChart for WinForms is obsolete. Now what?
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top