Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to CLEAR the keyboard buffer? - Vol.2
Message
 
To
27/01/1999 23:05:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181120
Message ID:
00181176
Views:
12
>>Thanks to Fred, Rich & Barbara for the helping with NODEFAULT issue.
>>Everything works fine, but I still have this question:
>>
>>HOW DO YOU CLEAR THE KEYBOARD/MOUSE BUFFER?
>>I have some users with slow machines and they just love clicking around while processing goes on. I'd like to clean up the buffer after processing but coudn't find the way...
>>
>>Any help appriciated
>
>To clear the keyboard buffer, use CLEAR TYPEAHEAD. As far as I know, there is no way to clear the mouse clicks. One good alternative though, is to issue a THIS.Enabled = .F. in the button click, and then re-enable the button after the code runs. This will assure tat the user does not click that button twice. To prevent clicking elsewhere on the form you would have to come up with something more elaborate to disable other controls, and set form.closeable = .F. etc.
>

Also if some processes in the form go for a long time - it is possible to cover the form with transparent shape or container for the time of processing and let users to click on it until they turn blue. :)

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform