Solved

How to flush the user input buffer

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 155
How to renew a Delphi rad-studio licence? 5 69
control image tags in a string ? 12 142
PHP preg_replace code convert to Delphi 14 66
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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