Information générale
Catégorie:
Gestionnaire de projet
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement