Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

ARTICLE: Add automatic sizing and resolution independence to a form with ShellObjects.Net Resizer component

 
Subscribe to the RSS feed for this forum  Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Mon Sep 17, 2007 3:59 am    Post subject: ARTICLE: Add automatic sizing and resolution independence to a form with ShellObjects.Net Resizer component

Add automatic sizing and resolution independence to a form with ShellObjects.Net Resizer component

View Original Article at :
http://www.ssware.com/articles/add-automatic-sizing-and-resolution-independence-to-a-form-with-shellobjects.net-resizer-component.htm

Introduction
Designed resolution independent forms whose child controls resize automatically when the form is resized is a pretty involved task. The Resizer component from ShellObjects makes adding this functionality to all your forms a breeze.

Resizer Basics
To add automatic sizing and resolution independence to your form, simply add the Resizer component to your form by selecting it from the Toolbox and double-clicking on your form at design time. A new Resizer component is added to the form with the HostControl property set to the form. That is all is needed. Whenever the form is resized either programmatically or by the user, and whenever the display resolution changes, all the child controls of the form are automatically resized accordingly.

Advanced functionality
It is very easy to control resizing behavior of individual controls at design-time. For example, it may be necessary to leave the control unresized, or resize only the height/width of the control, or leave the font size of the control unresized. This can be easily done using the rich design-time features of the Resizer component. To change the resize settings of a control, select that control and change the 'ResizerSettings' property of the control.

For even more control, the 'ControlResize' event can be handled. This event is raised every time a control is about to be resized. You can modify the resize settings in the event handler to change how that control will be resized.

Saving size and position of the form automatically
To automatically save/load the size and position of the host form when the form loads/unloads, set the 'HostFormSettings' property to 'SaveSize' and 'SavePosition'.

Adding resolution independence to the form
To automatically resize the form when the display resolution changes, set the 'HostFormSettings' property to 'ResizeOnResolutionChange'.

Conclusion

The Resizer component makes it very easy to add resolution-independence and automatic resizing to your forms. The comprehensive design-time support and advanced features and functionality enables customization of the resizing behavior as required.
Back to top
Display posts from previous:   
Forum Index -> Announcements All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group