Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Taskpane Manager Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01012945
Message ID:
01012970
Views:
17
Thanks

>>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.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform