Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Sub Class
Message
From
20/10/2004 18:12:15
June Kendrick
Kendrick Associates, Inc.
New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
How to Sub Class
Miscellaneous
Thread ID:
00953172
Message ID:
00953172
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform