Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-class objects in DLLs
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00626395
Message ID:
00626813
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform