Declear part:<br><br> private<br> FClientInstance,<br> FPrevClientProc : TFarProc;<br> procedure ClientWndProc(var UsrMsg: TMessage);<br><br>OnCreate event:<br> FClientInstance := MakeObjectInstance(ClientWndProc);<br> FPrevClientProc := Pointer(GetWindowLong(EditHandle, GWL_WNDPROC));<br> SetWindowLong(EditHandle, GWL_WNDPROC, LongInt(FClientInstance));<br><br>OnDestoy event:<br> FreeObjectInstance(FClientInstance) ;<br> SetWindowLong(EditHandle, GWL_WNDPROC, LongInt(FPrevClientProc));<br><br>procedure Txxxxx.ClientWndProc(var UsrMsg: TMessage);<br>begin<br> with UsrMsg do<br> Result := CallWindowProc(FPrevClientProc, AppBuilder.Handle, Msg, wParam, lParam);<br> case Msg of<br> CM_TEXTCHANGED: // Do you event handle here ;<br> end ;<br> end;<br>end;<br><br><br> <br>