Changing font size of all controls

2 posts, 0 answers
  1. Karol
    Karol avatar
    1 posts
    Member since:
    Jul 2008

    Posted 28 Jul 2008 Link to this post

    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 ?
  2. Angel
    Admin
    Angel avatar
    121 posts

    Posted 29 Jul 2008 Link to this post

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