Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
H E L P !!!! Events aren't fired
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00525910
Message ID:
00526048
Views:
20
VFP Documentation says Autoyield = .F. do not process any click on the activeX control while some process are running.
I have the follow scenario:
* Main.prg
Do Form MainForm
Read Events

* Main Form have a MS ListView Control and 2 Command buttons (Call and Exit)
* Main Form is Modal

* Main Form Load
_VFP.AutoYield = .F.

* Main Form Init
** Here the code to fill the ListView

* cmdExit click
Release Thisform

* cmdCall Click
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform