>>>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
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