unit Unit1;<br>interface<br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs, StdCtrls;<br>type<br> TMemo1 = class(TMemo)<br> procedure WndProc(var Message : TMessage); override;<br> end;<br><br>type<br> TForm1 = class(TForm)<br> procedure FormCreate(Sender: TObject);<br> private<br> { Private declarations } <br> public<br> { Public declarations }<br> mm : TMemo1;<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.dfm}<br><br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> mm := TMemo1.Create(self);<br> mm.Parent := form1;<br> mm.Left :=10;<br> mm.Top := 10;<br> mm.Width := 300;<br> mm.Height := 80;<br> mm.Text := 'skdjflaskjdfaslkfj';<br>end;<br><br>{ TMemo1 }<br><br>procedure TMemo1.WndProc(var Message: TMessage);<br>begin<br> if message.Msg = WM_CUT then<br> begin<br>// form1.Caption := 'dd';<br> exit;<br> end;<br> inherited;<br><br>end;<br><br>end.