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:
00684667
Vues:
24
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform