>>As oppose to CLEAR TYPEAHEAD, what can we do in order to avoid a mouse click when a process in under way?
>>
>>I have a form which generates a process from a click on an icon. I don't want to fire the process again if the user clicks on it while the first process is not finished.
>>
>>I can use a flag to avoid the second process to fire but I was wondering if there would have been a way to avoid the click.
>
>You could just disable the control (commandbutton?) which initiate the process.
I tried that and it doesn't change that much because while Visual FoxPro processes a method, the click is recorded and Visual FoxPro will only fire the click when the application interface becomes available. So, when the method is finished, the click will fire and will start another process.
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?