Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form resize - design question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Form resize - design question
Divers
Thread ID:
00676793
Message ID:
00676793
Vues:
64
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
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform