Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing Class in Abstract Factory
Message
De
16/11/2004 15:35:54
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
16/11/2004 15:23:42
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
00961898
Message ID:
00961910
Vues:
4
Just noticed the filepopup container in the atmenus class - where you specify which bars to use in the File menu. So, just give it my own bar instead of the stock bar. Works like a champ.

June

>In one app, I've sub-classed the cReportForm class and set up to call it via a tool bar button. The File/Print Report option calls the original cReportForm class by using an AbstractFactory to create a 'ReportForm'. The AbstractFactory uses the CLASSES table in the MMORTALS\COMMON30\LIBS directory. I'd like to have the File/Print Report option call my sub-class instead of the original ReportForm. What's the recommended method?
>
>If I change the entry in the CLASSES table, then all apps that use the framework will call the sub-class, which isn't necessarily what I want. At the moment, it doesn't matter as I've only got the one app, but I might not want that sublcass fo the next one. Should the CLASSES table really be in the DATA directory (or the app base directory) for the app, instead of the MMORTALS LIBS directory?
>
>Thanks,
>
>June
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform