Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse equivalent of CLEAR TYPEAHEAD
Message
 
 
To
10/07/2002 15:03:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00677211
Message ID:
00677337
Views:
22
This message has been marked as the solution to the initial question of the thread.
Rodney,

You should make sure that you set the MousePointer to an hourglass during any long running process to give them some visual cue the machine is busy. I prefer a more proactive progress display though using a progressbar. I also use a class that can be used inside a SCAN that will give the user a prediction of when it'll be finished.

But to solve your problem, code like this will suck up all but one of the mouse clicks, you can put it at the end of the long running code:
n = inkey( 0.01, "MH" )
j = 0
do while ( n > 0 )
   n = inkey( 0.01, "MH" )
   j = j + 1
enddo
>Is there a mouse equivalent of CLEAR TYPEAHEAD (CLEAR CLICKAHEAD??)?
>
>If not, what is a good way to prevent extra mouse clicks from impatient users from landing them in the remote reaches of the application?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform