Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Taskpane Manager Question
Message
 
 
À
11/05/2005 13:12:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01012945
Message ID:
01014069
Vues:
22
>>>When I click on a recent project to open it, I'd like to run
>>>code either before or after the project opens.
>>>
>>>How can I do this?
>>>
>>>Thanks
>>
>>Well we can eliminate the ProjectHook class because that has no events for capturing the opening of the project. The best I can suggest is to poke through the Project Manager code in the VFP home tools\xsource folder to see if you can hook into something they are running. If they are opening classlibs or are using any sort of classes to startup the opening of the project, you could use BINDEVENTS to fire off some method in your own project hooks class. Of course, you would have to instanciate your project hook class before opening the project. But you could do this in the Task Pane manager by placing the appropriate code in the "Run script before..." editbox in the Environment Settings tab.
>
>The INIT and DESTORY event fire at these time in the projecthook.

Doh! Silly me for looking for something like BeforeOpenProject, AfterOpenProject, BeforeCloseProject, etc. < bg >
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform