Font change after click at RadButton

8 posts, 0 answers
  1. Stefan
    Stefan avatar
    4 posts
    Member since:
    Mar 2011

    Posted 28 Feb 2012 Link to this post

    Hi there,

    We're using Q1 2012 and have a small problem with the RadButton and it's font.
    We've set the font to "Segoe UI; 12pt" at design time. And first it's working fine. But if the button is clicked, the font size seems to be smaller (I suspect it's 8,25 pt) than before.
    After debugging I just can say, that the font name and the font size are still "Segoe UI;12pt" but the appearance is different.

    Is there anything I can do about this?
    Thanks
  2. Jason
    Jason avatar
    24 posts
    Member since:
    Apr 2011

    Posted 28 Feb 2012 Link to this post

    i am having the same issue after upgrading. The font seems to jump back and forth between the font I've set the button to in the desinger (11, bold) to some default (8.25, Regular). Sometimes it starts out at the wrong size, sometimes it flips when I click the button. Thanks for any assistance!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Mar 2012 Link to this post

    Hi Guys,

    Setting the font size through the UI does seem to cause this issue. However, if you set it in the form constructor, by setting the button element's font, then all seems well.

    this.radButton1.ButtonElement.Font = new Font("Segoe UI", 12);

    Hope that helps
    Richard
  5. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 01 Mar 2012 Link to this post

    Hi everyone,

    Thank you for writing.

    I confirm there is an issue with the Font property of RadButton. I have added to our Public Issue Tracker under ID 9985. To vote for it and subscribe for its status updates please follow this link: http://www.telerik.com/support/pits.aspx#/public/winforms/9985.

    To overcome this behavior, you should set the Font property of the ButtonElement. In design-time you will be able to set it through the Edit UI Element dialog. Alternatively, at run-time you can use the following line:
    this.radButton1.ButtonElement.Font = new Font("Segoe", 12F);

    Thank you for reporting this issue and please excuse us for the cased inconvenience. We will do our best to address the issue in the next release.

    Kind regards,
    Boryana
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  6. Jason
    Jason avatar
    24 posts
    Member since:
    Apr 2011

    Posted 01 Mar 2012 Link to this post

    As far as setting the font via the ButtonElement in the Edit UI Elements dialog, when I go there the font is already 'set' to the right values (it's showing up 12pt, bold etc). I have to first change it to something else, and then change it back for this fix to work.
  7. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 06 Mar 2012 Link to this post

    Hello Jason,

    Please excuse me for the caused inconvenience.

    I forgot to explain that you will need to reset the Font property of the RadButton through the Properties panel and then, use the Edit UI Elements dialog to set the Font of the ButtonElement.

    Let me know if you encounter further issues.

    Regards,
    Boryana
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  8. Carol
    Carol avatar
    3 posts
    Member since:
    Dec 2011

    Posted 25 Jun 2014 in reply to Boryana Link to this post

    I tried using the syntax you posted for setting the font at runtime, but it is not working.  The font does not change.  Has this bug been fixed?  I have the latest update already installed.
  9. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 30 Jun 2014 Link to this post

    Hello Carol,

    This issue has been fixed back in Q1 2012: http://feedback.telerik.com/Project/154/Feedback/Details/111022. I have tested both approaches - setting the Font of the control and setting the Font of the ButtonElement, and both are working properly on my end.

    Should you experience any issues setting the font of the button, please get back to me with information how to reproduce the issue and I will look into it.

    Regards,
    Stefan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready