Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Sub Class
Message
De
20/10/2004 18:12:15
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
How to Sub Class
Divers
Thread ID:
00953172
Message ID:
00953172
Vues:
49
If I've got a change that I want to make to the cGrid class, for all grids anywhere in my project, including those in cListObjs, cBizObjMaintenanceForms, etc., what's the best way to go about it?

If I just subclass the cGrid class and make my changes, then nothing will be using my subclass except things that I create that use it. If I change the MM cGrid class, then I have to watch out for updates. If I subclass the super classes, then they still use the base cGrid class. If I dupe the super classes, then I still have to watch out for updates (more so then if I just change the cGrid class).

Any thoughts?

In this instance, what I'm doing is adding a sort order indicator to the clickable header, and I'd kind of like it to be universal to the app, without having to go in to every class that uses a grid and insert code.

Thanks,

June
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform