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

Zooming Font and Size for Windows Forms Controls

1 Answer 230 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phillip Hamlyn
Top achievements
Rank 1
Phillip Hamlyn asked on 16 Sep 2009, 07:51 PM
Hi,

I wish to be able to simulate the standard browser Zoom feature in a Windows Forms application. I have a certain set of Telerik controls (RadLabel, RadTextBox etc) which I'd like to ;
1) Reset the font size (to allow the text to grow bigger)
2) Reset the control.Size (to allow for the larger font size).

All the controls I want to do this for are within some kind of TableLayout container, so I think the repositioning should occur automatically using a SuspendLayout and ResumeLayout

Typically to do this I would iterate through the hierarchy of controls, resizing and re-fonting as I go. However I wondered if there was a "better" way to do this, perhaps using Themes or Styles within Telerik which would give a better solution.

Phillip

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 21 Sep 2009, 01:58 PM
Hi Phillip Hamlyn,

Unfortunately RadControls or WinForms do not support this feature out of the box.
And as I understand this zooming features is dynamically setting specific Size and Font of all controls on the form and theming in RadControls would not be suitable for implementing this.
Please try your approach and let us know if you meet any difficulties.

Kind regards,
Mike
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Phillip Hamlyn
Top achievements
Rank 1
Answers by
Mike
Telerik team
Share this question
or