Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to instantiate an OCX in Code rather than Drag & Dro
Message
De
29/04/1998 19:42:42
 
 
À
29/04/1998 17:34:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00095813
Message ID:
00095835
Vues:
21
>How do you instantiate and manipulate an OCX control at run time without first going into the form designer at development time and dragging and dropping the ocx onto the form.
>
>I'm trying to invoke the 3rd party OCX control DynaZip in a prg file.

As Nick mentioned, sub classing is the way to go.

As for me, for Dynazip, since it does not relate necessary to a form, I created a form class containing it. At run time, I just instantiate that form class and can reference the OCX in it after. Sometimes, like for Dynazip, we want to be able to use it from various locations and there isn't necessary a need to drop it on the form.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform