Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set VFP Form Property from VB6 OCX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00684622
Message ID:
00684992
Vues:
23
Thank you. However, I'm not getting this to work. I put a command button on the OCX, and have a public subprocedure for click():

Public Sub Command1_Click()

End Sub

In the VFP form properties window this method is available and I enter:

*** ActiveX Control Method ***
WAIT wind

When I run the form and click the button nothing occurs. This is true for all VFP code I put in any methods of the OCX so far.

Do I have to set something up for the VFP Code I add to the OCX methods in the property window to run?





>>I've written a VB6 OCX Activex Painting Control that can be dropped on a VFP Form.
>>
>>Does anyone know how I can set a VFP Form Property from within the VB code? I want to set a custom "Form.HasChanged" property to .T. when a picture is edited.
>>
>>I know could have VFP do it with a VFP timer on the form checking the properties of the OCX control itself for changes. However, it would be more elegant if I could access VFP properties from within the OCX as editing was occuring.
>>
>>Any ideas, anyone?
>>
>>Don Meuse
>>Spectrum Software, Miami, Florida USA
>
>Once it's been dropped on a form, you can add code directly to the ActiveX events (in VFP) in your control. The code in these events can interact with your form (eg. just add: ThisForm.HasChanged = .T. in whatever ActiveX event should trigger this). Hope that makes sense.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform