Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a Clear Typeahead for Mouse Clicks?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01153553
Message ID:
01153563
Views:
29
If you do not mind blocking also the keyboard you can use
declare integer EnableWindow in win32api integer, integer

EnableWindow(thisform.hwnd, 0) && Disables all input
* Your long process
EnableWindow(.hwnd, 1) && Re-enables it
But I am not sure if this will leave the calls in the stack, another alternative would be using BlockInput
declare BlockInput in win32api integer lBlockIT

BlockInput(.t.)
* Your long process
BlockInput(.f.)
I understand that blockinput will not leave any calls in the stack, but the side-effect of not even being able to move the mouse is ugly, and I think BlockInput should work, I just run a small test
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform