Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to subclass an OCX control?
Message
 
To
08/06/2004 12:20:15
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00911164
Message ID:
00911241
Views:
16
Here's where VFP 8 (i think 7, too) might be helpful.

In the command window (VFP 8) do this:
O=CREATEOBJECT('Charge.OCXCharge')
the, when you type "O.", an object browser intellisense list should appear to reveal the root properties and methods available. Does this happen when you create the object in the command window?


>Sergey,
>Thanks, but it's not working with the control I am trying to use.
>
>DEFINE CLASS pcChargeControl AS OLEControl
> OLECLASS='Charge.OCXCharge'
>ENDDEFINE
>
>I am using the correct typelib reference, because the statement
>O=CREATEOBJECT('Charge.OCXCharge')
>works.
>
>Do you see something that I missed?
>
>>>How can I programmatically subclass an OCX Control?
>>>
>>
DEFINE CLASS myListView as olecontrol
>>  OleClass = 'mscomctllib.listviewctrl.2'
>>ENDDEFINE
>>
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform