Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
H E L P !!!! Events aren't fired
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00525910
Message ID:
00526048
Vues:
21
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform