This is a migrated thread and some comments may be shown as answers.

RadRibbonForm title text getting cut off

2 Answers 166 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 12 Jun 2013, 04:35 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 17 Jun 2013, 12:22 PM
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?
0
Marc
Top achievements
Rank 1
Veteran
answered on 16 Feb 2018, 07:54 AM

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

Regards

Tags
RibbonBar
Asked by
Jason
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Marc
Top achievements
Rank 1
Veteran
Share this question
or