Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing OLE control
Message
From
05/06/2018 00:58:54
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01660554
Message ID:
01660558
Views:
77
This message has been marked as the solution to the initial question of the thread.
>I am trying to figure out how to subclass OLE control. Here is the situation, I am using DBI Tech ActiveX listbar. It is currently inside a VFP native toolbar. I am trying to separate the two.
>
>I do have all OCX files that came with DBI Tech. Specifically the file ctlist.ocx. How do I subclass this OCX? so that, I can later instantiate it in the VFP toolbar programmatically?
>

It's been a while since I've done that but I recall that all you need to do is create a new class based on OLEControl, then when you click Ok it will ask you which OLE control to use and you find the listbar in the list.

You can use either "create class test as OLEControl" or use the new class GUI and select OLEControl from the drop down.

Ian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform