Evova Technology :: How It Works
Evova Technology - Software Solutions

Select contrast settings. Use Hi Contrast for easier viewing.

How It Works

RXResizer looks for commands placed in the TAG property of every control on the form. When the form is resized, or an RXSplitter control is resized, each control will be repositioned or resized according to the commands placed in its TAG property.

Note that the commands refer to how the control is resized relative to its container not just the form although if the control is placed directly of the form then the form is the container.
This offers a higher level of flexibility than most of ResizeXtra rival controls.

The following letters can be used as commands in the TAG properties and can be upper or lower case and in any order:

L Anchor to left (Keeps the same distance between the left of the container and the left of the control)
R Anchor to right (Keeps the same distance between the right of the container and the right of the control)
T Anchor to top (Keeps the same distance between the top of the container and the top of the control)
B Anchor to bottom (Keeps the same distance between the bottom of the container and the bottom of the control)
X Proportionally resize the width and horizontal position of the control as the container resizes. This will override either the L or R options. The control is resized horizontally so the new distances between the left and right edges of the container are proportional to its new size.
Y Proportionally resize the height and vertical position of the control as the container resizes. This will override either the T or B options. The control is resized vertically so the new distances between the top and bottom edges of the container are proportional to its new size.
A Maintain the controls original aspect ratio. After all other commands are implemented the control size will finally be adjusted so as to maintain the same aspect ratio (ratio of width to height) as the original control without exceeding the extents of the new position and size as determined by any previous commands. I.e. to maintain the aspect ratio the control will be made smaller if necessary but not larger.
F Proportionally resize the controls font. The font size will be changed to match the controls new size. Note that the font will change to a size that will fit the control so changing the controls width or height on its own will not change the font size. This is only really suitable in conjunction with XY or LRTB tag commands. It would also be beneficial to select a TrueType font instead of the default MS Sans Serif for smoother font scaling.

Examples of Tag command combinations

In the following graphical examples certain command combinations will be explained.
The example tag will indicated inside a representation of a control shown in YELLOW. The control sits inside its container which is shown in BLUE.
To more easily understand the examples it may be easier to imagine the blue container as being the form.

The examples are shown in pairs with the original position on the left and the new resized position on the right.

The RED arrows indicate how the control is locked to the edge of the container so the new distance after resizing always remains the same as the original.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The example on the left shows how the 'A' command has made the control smaller in height than the other commands would have produced so as to retain its original aspect ratio.

 

The example on the right shows how, when multiple controls are placed in a single container, they can be instructed to resize together resulting in truly dynamic forms and containers that resize logically and professionally.

 

With everything learned from the above examples it should be remembered that the examples apply to the controls container not just the form. So any container, that has resizing rules in its own tag property, can contain child controls each with their own resizing commands.

The example on the left indicates that one of the already resized controls could have contained other controls (in PURPLE) each with their own resizing rules.

As you should now be able to appreciate, this is one powerful control for your toolbox. Now imagine incorporating the RXSplitter control which works seamlessly with RXResizer and you can forget programming any more resize code.

See some screenshots of applications using ResizeXtra Here.

 

 

http://www.siprofessionals.org

Evova Technology UK  Contact Details:
www.evova.com |  info@evova.com  |  Fax:  +44 (0)870 705 1852
Voicemail: +44 (0)870 125 0413
| RSS: | Privacy Policy

© Copyright 2006 Evova Technologyweb counter

Download
Ensure that you have the latest version.
Click Here to go to the main ResizeXtra page and click the Download button that you will find in this position on the page.