Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Events and Methods in an ActiveX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Divers
Thread ID:
01523767
Message ID:
01523772
Vues:
39
>>>I have been using an ActiveX HTML editor by placing it in a container object and saving the container as a class in a VCX. Since that container is always used inside another container I decided to load the editor directly with code
.AddObject("oBrowser","olecontrol", "rmpHTML.HTMLed")
when I create the outer container. However, I cannot figure out how to access the ActiveX editor's methods and events.
>>>Any ideas?
>>
>>:-)
>>That's is why it is better to place it in design time.
>>Check EVENTHANDLER() function in HELP
>
>I was trying to add it at run time to simplify things. The user can add the containers as needed. If I have to use EVENTHANDLER() then it makes a lot more sense to go back to the old way and just have to put up with two containers.
>
>Thanks for the help.


OK,
Then make your own Class based on Container in which ActiveX is placed.
Handle all events there, and let user put this container, not ActiveX directly.

BTW with putting ActiveX in your own VCX based container you wouldn't have problems with ActiveX certificate.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform