Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding ActiveX controls
Message
From
20/04/2001 09:45:52
 
 
To
20/04/2001 08:52:34
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00497802
Message ID:
00497837
Views:
9
>I want to create a Pageframe programmatically and add an ActiveX control to each Page, how can I do this using the AddObject() Method in the Page Object? Is it different from adding a VFP Object?
>
>Thanks in advance
>Kev

You will probably have to add the third parameter, .cOLEClass. For example I have a sub-classed MonthView control I call "VFPMonthView". I instantiate it using AddObject() something like:
THISFORM.ADDOBJECT( "oleCalendar", "VFPMonthView", "MSComCtl2.MonthView" )
where the second parameter is the class name and the third the OLE Class name. For a raw ActiveX control, I believe the second parameter would be "OLECONTROL". Someone can correct me on this if not correct.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform