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

Changing font size of all controls

1 Answer 216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karol
Top achievements
Rank 1
Karol asked on 28 Jul 2008, 09:46 AM
Hello,

Is there other way to change font size for all controls in application, then looping through all containers ?

Let say that Ive changed RadTextBox font size from 10 to 20, after this control will change its height and cover controls under it. How can i keep constant spaceing between controls ?

1 Answer, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 29 Jul 2008, 01:04 PM
Hi Karol,

The layout of the controls depends on two things:
  1. Used container controls (Panels or custom layouts such as FlowLayoutPanel and TableLayoutPanel)
     
  2. How Anchor and Dock properties are set for each control and container.
You can try setting the form's AutoScaleMode to Font and then - its Font property to the desired font.
If the form still looks ugly (it depends on the points above) - you will have to change the controls layout manually.

You should have in mind that if a Font property for a control is modified in design-time, it will not be inherited from the parent.
To enable inheritance again - right-click on the property in the Property Grid and click on "Reset".

Regards,
Angel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Karol
Top achievements
Rank 1
Answers by
Angel
Telerik team
Share this question
or