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

RadButton Text Antialiasing

3 Answers 103 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Dec 2008, 09:34 PM
I am using the RadButton in my app which has large buttons in order to accomodate touch screens. As a result, my buttons are pretty large and the text in them ends up looking blocky.

I would like to use antialiasing or cleartype to render the text in the button, but am not sure how to do it. Is there some sample code to show how to do this?

Thanks,

David

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 10 Dec 2008, 05:05 PM
Hello David,

Thank you for your question. Please use the following code snippet:

 
((TextPrimitive)this.radButton1.ButtonElement.Children[1].Children[1]).TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;  
 
 

Do not hesitate to write me back if you have more questions.

Greetings,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David
Top achievements
Rank 1
answered on 10 Dec 2008, 08:33 PM
Thank you for your help. The code snippet worked. However, when I look at the snippet in the forum here in IE7 it shows only a slider bar, no code. I got the snippet from the automatic email. It can also be obtained by looking at the source page, but you might want to see if this is a problem in the forum.

Thanks again.
0
Nick
Telerik team
answered on 06 Jan 2009, 12:29 PM
Hi David,

Sorry for the late reply on your last post. The browser glitch that you mentioned for IE7 was fixed month ago.

Thank you for reporting it.

Best wishes,
Raya
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
David
Top achievements
Rank 1
Answers by
Nick
Telerik team
David
Top achievements
Rank 1
Share this question
or