Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ignore mouse click
Message
From
27/09/1997 00:00:14
 
 
To
26/09/1997 20:21:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051797
Message ID:
00051923
Views:
40
>>>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
Map
View

Click here to load this message in the networking platform