Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a procedure to an ActiveX control
Message
De
29/06/2000 09:27:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00386187
Message ID:
00386393
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform