VFP Documentation says Autoyield = .F. do not process any click on the activeX control while some process are running.
I have the follow scenario:
Do Form MainForm
Read Events
_VFP.AutoYield = .F.
Release Thisform
Local o
If Vartype(Thisform.oleList.Object.SelectedItem) == "O"
o = NewObject( "frmCall", "myvcx.vcx" )
If Vartype(o) == "O"
o.Show()
If o.lOk
Wait Window "OK"
Else
Wait Window "CANCEL"
EndIf
Else
Wait Window "BAD"
EndIf
EndIf
The Class frmCall is based on a Form that contain some activeX control.
This form is Modal.
The problem is that the events of the activeX control on this form isn't fired.
I think this is because the code is running on O.SHOW() line and Windows have not a wait state to process the events of the activeX.
If I turn _VFP.Autoyield to .T., the same thing happend.
What am I doing wrong ???????????
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.