Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a procedure to an ActiveX control
Message
From
29/06/2000 09:27:27
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00386187
Message ID:
00386393
Views:
21
Hi Larry,
Thanks for the reply, although it wasnt what I hoped to hear.

>No it doesn't. Add the Init method under the OleManager class definition.

According to the example under the DEFINE CLASS command in the help file, anything I add under the OleManager class definition is added to the OLE Container unless it is prefaced with the .Object clause, and I couldnt figure out how to create a procedure using the .Object clause.

>Most likely, the Manager.Init line of code will throw an error.

The Manager.Init line doesnt throw an error and in fact, executes when the object initializes. But is there a way to determine if the procedure is executing for the OLE Container or the ActiveX control?

Jon

>>Hi All,
>>
>>Here's the code:
>>DEFINE CLASS frmOLETest AS FORM
>> ADD OBJECT Manager AS OleManager
>> PROCEDURE Manager.INIT
>> *init code
>> ENDPROC
>>ENDDEFINE
>>
>>DEFINE CLASS OleManager AS OLECONTROL
>> OLECLASS = 'Manage.Manager.1'
>>ENDDEFINE
>>
>>My question is: The Manager.Init procedure created directly after the ADD OBJECT clause adds the procedure to the ActiveX control and not the OLE Container, right??
>>
>>TIA,
>>Jon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform