Maybe use the OnChange Event,
pasting isn't the equal of pressing the keyboard ...

MvG
Lode Deleu
Orca - Belgium

----- Original Message -----
From: "Fastream Technologies" <[EMAIL PROTECTED]>
To: "Unmoderated discussion list about anything that resembles
Delphiprogramming." <[email protected]>
Sent: Wednesday, February 01, 2006 7:01 PM
Subject: Bug in TEditBox?


> Hello,
>
> I have a character checker at OnKeyPress that controls like:
>
> if Key = '^' then
>     Key = #0;
>
> This works fine for keyboard input. However when the user copies a string
> like 'qwerty^' to the clipboard and the right clicks the mouse on the
> component and clicks on paste, it does not work! (the character is NOT
> filtered). Is there a workaround for this problem?
>
> Best Regards,
>
> SZ
>
> __________________________________________________
> Delphi-Talk mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi-talk
>

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to