Hi,
I ran into a problem with the MaskEdit unit that I'm working on.
I want to intercept clipboard operations (like when the users presses Ctrl-V, Ctrl-X or uses the mouse-equivalent) before the text in the editcontrol gets changed.
Currently I have
TCustomMaskEdit = Class(TCustomEdit)
...
procedure LMPasteFromClip(var Message: TLMessage); message LM_PASTE;
procedure LMCutToClip(var Message: TLMessage); message LM_CUT;
procedure LMClearSel(var Message : TLMessage); message LM_CLEAR;
...However, when these procedures are called, the text in the control has already been overwritten. I especially want to validate the content of the pasted text before it is pasted into the control. Is this (in a cross-platform way) possible at all?
Bart
