RadButton Text Antialiasing

4 posts, 0 answers
  1. David
    David avatar
    4 posts
    Member since:
    Oct 2008

    Posted 09 Dec 2008 Link to this post

    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
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 10 Dec 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. David
    David avatar
    4 posts
    Member since:
    Oct 2008

    Posted 10 Dec 2008 Link to this post

    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.
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 06 Jan 2009 Link to this post

    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.
Back to Top