Information générale
Catégorie:
COM/DCOM et OLE Automation
I am attempting to control VFP 6.0 via Automation (I'm doing this from within a VFP 6.0 application which seems to work well enough), but I'm having a very difficult time determining how to automate many events in VFP. The documentation provided for the VFP Application Object Model seems pretty superficial and there aren't many examples.
If I were automating an MS-Office product, I would probably just record a macro to do what I want. Then I could call that macro from my application (or review how the macro did it and add similar code to my application).
The macro recorder in VFP will only record keystrokes. Is there a tool that will allow me to record macros in VFP for actions performed with a mouse?
Is there somewhere I can find more detailed documentation about the VFP Object Model and how to control VFP 6.0 via Automation?
Here's an example of one of the things I'm trying to do: I open VFP 6.0 via automation and issue a MODIFY FORM ... to edit an existing form. The form opens properly, but the Form Controls Toolbar displays the "Standard" controls. I want the Form Controls Toolbar to display a class. When I "View Classes", my class is there, and I can manually select it. But I want to be able to automate VFP so that my class will be selected immediately without manual intervention. I have no idea how to automate this action.
Suivant
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