Lets say we have a TEdit component that should only have numeric characters 0..9. I can trap keystrokes that aren't numeric with the OnKeyPress event, converting them to #0 easily enough.
But if the user copies and paste text, the TEdit object will accept all the characters. I can intercept the Ctrl-V and then filter the Clipboard.Text accordingly, but I don't see how I can intercept a mouse paste.
Somewhere in the object, LCL is accepting this input into the textbox, but I can't see how.
An OnPaste (even better, OnBeforePaste and OnAfterPaste) would be very convenient to have as properties no?