Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing Project Object
Message
De
12/09/2000 11:24:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00415318
Message ID:
00415409
Vues:
14
Hi Sander.

>Can I subclass the Projectobject in VFP 6.0. If it's possible I like to add my custum classlibraries default to my projects, hooks and other stuff.

No, but you can subclass a ProjectHook object. In the Tools, Options dialog, you can set the default ProjectHook for all projects, so when you create a new project, your ProjectHook class will automatically be instantiated. In the Init of your class, check _VFP.ActiveProject.Files.Count; if it's 0, this must be a new project, so you can use _VFP.ActiveProject.Files.Add to add all standard files (class libraries, PRGs, etc.) to the new project.

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform