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

Font change after click at RadButton

7 Answers 530 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 28 Feb 2012, 11:05 AM
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

7 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 28 Feb 2012, 08:04 PM
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!
0
Richard Slade
Top achievements
Rank 2
answered on 01 Mar 2012, 12:06 PM
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
0
Boryana
Telerik team
answered on 01 Mar 2012, 12:10 PM
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 >>
0
Jason
Top achievements
Rank 1
answered on 01 Mar 2012, 07:15 PM
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.
0
Boryana
Telerik team
answered on 06 Mar 2012, 01:57 PM
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 >>
0
Carol
Top achievements
Rank 1
answered on 25 Jun 2014, 11:59 PM
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.
0
Stefan
Telerik team
answered on 30 Jun 2014, 06:58 AM
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.
 
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Stefan
Top achievements
Rank 2
Answers by
Jason
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Boryana
Telerik team
Carol
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or