Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub-Classing - 1 Library or 'n' Libraries
Message
De
24/02/2004 10:00:39
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
24/02/2004 09:47:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00880249
Message ID:
00880259
Vues:
23
>Hi All,
>
>I have a question about sub-classing the VFP controls. Assuming the statement “Sub-Class Everything” is correct. When you create a new class it has to go in a class library. The classes created will be used in all executable programs. Some of these require only a few controls on the form. Others will require several. The question I/We have is: Which is better?
>
>1) Place each sub-classed control into separate libraries. One for a textbox, one for a combobox, grid, form, etc…
>
>2) Or place all of them in the same class library.

My rule of thumb is to put all the level 1 controls in one library, specially if it's a framework type, ie. to be used accross apps.

Within apps, if I have to subclass further, group them by purpose. Separate printing stuff from toolbar stuff from messaging stuff from login stuff from system maintenance etc etc. But I don't claim any originality here - I got that habit from frameworks.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform