Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ignore mouse click
Message
From
26/09/1997 14:04:58
 
 
To
26/09/1997 13:52:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051797
Message ID:
00051804
Views:
37
>>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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform