Solved

How to flush the user input buffer

Posted on 1997-10-10
1
500 Views
Last Modified: 2010-04-04
Given a button that hides one form and shows another, if the user clicks the button twice, the second click will cause a click event to occur on the new form before it is displayed.
One solution is to flush the input cache during the "OnShow" handler of the second form. How is this accomplished?
0
Comment
Question by:jonf
1 Comment
 
LVL 1

Accepted Solution

by:
Gabor earned 100 total points
ID: 1347279
Hi Jonf,

Try this!

while PeekMessage( msg, NewForm.Handle, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE) do ;

Good luck

Gabor
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now