Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FORM AND CLASS RESIZE
Message
 
To
28/08/2000 14:34:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00409905
Message ID:
00410182
Views:
24
>Christian,
>
>There is a CONTROLS array on the form which provides a reference to each control on the form. There is also a controlcount property which stores the number of controls. Use a FOR loop to cycle through each control and call it's resize method.
>
>The real trick is to tell each control how you want it to be resized. I have created a custom resize class which I use include on each control to proportionally resize it relative to the form, and to handle some other mundane tasks (like changing font size if it's too small or big). The resize object causes some problems, though, in that you run the risk of dangling (?) object references. I've seen people here (with much more experience than me) who prefer to just put resize code in the base class of each object which does the same thing. The advantage to this is that you don't have the dangling object references. The down side is that to make a generic change, you need to do so in each object.
>
>Hope this helps.
>
>David
>
>
>
>>Does anyone know how to resize all the controls on a form when the form is increased or decreased in size.

There is also several classes for download to do this for you in the Files sections.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform