From: Phil Dewar [mailto:[EMAIL PROTECTED]]
> Simple question please:
> How should you clear the keyboard type ahead buffer ?
> TIA, Phil

From: Nic Wise [mailto:[EMAIL PROTECTED]]
>I'm most likely wrong, but I dont think you can under windows - the
>keyboard is a shared device, and all you get are messages.....

In windows, would removing the messages from the queue be as good?  You
could do something like

repeat until PeekMessage(MsgStruct, Form1.Handle, WM_KEYFIRST, WM_KEYLAST,
PM_REMOVE) = 0;

(warning - untried)

Cheers,
Carl
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to