General information
Category:
ActiveX controls in VFP
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only