Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ignore mouse click
Message
De
27/09/1997 00:00:14
 
 
À
26/09/1997 20:21:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00051797
Message ID:
00051923
Vues:
42
>>>What I did is something like this in the Click().
>>>
>>>This.Enabled=.F.
>>>ThisForm.MyProcess()
>>>This.Enabled=.T.
>>>
>>>So, what happen is until those 3 lines are not finished, the application interface is not available. So, the This.Enabled=.T. will fire before the click of the mouse is processed by Visual FoxPro.
>>>
>>>The problem remains. Any more suggestions?
>>
>>DOEVENT before This.Enabled = .T. ??
>>
>>Don't forget about AUTOYIELD.
>
>Same thing, it does not help.
>
>I used DOEVENTS but didn't include AUTOYIELD. From the help file, the default is .T., which is what I need.

I didn't played very much with DOEVENTS and AUTOYIELD, but from what I remember from some tests I did a few months ago and from the help, I would say that AUTOYIELD must be set to .F.

From the Help for AUTOYIELD = .F.:
"All pending Windows events are placed in a queue, and the events in the queue are processed when DOEVENTS is issued or a wait state occurs."

Hope I'm right,
Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform