Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub-class objects in DLLs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00626395
Message ID:
00626813
Vues:
15
Kurt,

VFP can indeed create subclasses of ActiveX controls. I think it's one of the few languages that allow this.
create classlib myactivex
create class mytabstrip of myactivex as olecontainer
When the dialog pops up, choose Insert Control, pick the Microsoft TabStrip control

You can set a tab count, and add custom PEMs.
set classlib to myactivex additive
ox = createobject( "form" )
ox.visible = .t.
ox.addobject( "cooltab", "mytabstrip" )
ox.cooltab.visible = .t.
? ox.cooltab.mycustom
There are versioning and deployment issues but they aren't insurmountable.

>You cannot subclass non-native objects in VFP. What you can do is create your own wrapper object based on a custom or session class. Here is an example of a wrapper for the stdDataFormat object.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform