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

Font Setting for the entire application

1 Answer 150 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
pierre-jean
Top achievements
Rank 1
Veteran
Iron
pierre-jean asked on 29 Feb 2012, 06:26 PM
I I wish to let the user select the font for the entire application which is composed of a RadRibonForm and multiple Dialog forms and users controls.
Setting through me.font = userfont in the RadRibonForm does not changes the font of the form itself and of the dialog and usercontrols.
I must be missing something very simple but what ... I have not found answers in the telerik or windows forums
thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Boryana
Telerik team
answered on 05 Mar 2012, 05:57 PM
Hi,

Thank you for contacting us.

All predefined themes, including ControlDefault, assign specific Font to each of our control in order to guarantee consistent look of the whole theme. In this sense, there is not a single line of code that changes the Font of the entire application. To achieve the desired outcome you will need to set the Font of the controls on your form manually.

Typically, you will need to set the Font of the control, as is the case with smaller and simpler controls, e.g. RadButton, RadCheckBox:

Me.RadButton1.Font = customFont
Me.RadCheckBox1.Font = customFont

However, there are cases where you will need to set the Font property of the element as well. Currently, this is the case with RibbonBarElement. This is a considered issue and it will be addressed in a future release:
Me.Font = customFont
Me.RibbonBar.RibbonBarElement.Font = customFont

I hope you find this helpful. Let me know if you have further questions.

Greetings,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Answers by
Boryana
Telerik team
Share this question
or