Solved

How to flush the user input buffer

Posted on 1997-10-10
1
503 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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