Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form resize - design question
Message
From
09/07/2002 16:33:40
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00676793
Message ID:
00676830
Views:
10
If you code it yourself, I would agree with your first thought and code at the Form level. The controls can be placed anywhere and would forever propagate this (sometimes) unneeded resize ability.

I think you're on the right track.

-Irv.


>In order to handle the resizing of our forms we need to save the original top and left values of all controls in a form into the custom properties originalTop, originalLeft of each control.
>
>Currently we do it in the init of the form class, looping trough all controls in the form - the code is in the init of the form.
>
>Would it be better if we do this in each control class? That would make the control more ?self contained?, but requires code in the init (or refresh) which means that we?ll need to remember to issue a dodefault() every time we need application specific code in init/refresh of each control.
>
>OTOH having the code in the form class, in one place, seems easier to maintain than having code in each control class.
>
>What do you think?
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform