How to block the drag and drop in TRichEdit? delphi code I work with Rich edit and having difficulties on blocking the drag and drop feature specially dragging text from outside the form let say comming from IE to my RichEdit.
+1
A:
try changing on key down/ up event setting it to readonly. onkey down, set it up to richedit1.readonly := false; and then on keyup richedit1.readonly := true; it works.. it evern disbled the paste features
simply_anny
2010-07-05 08:32:09
haha it works great! do you know any other? i will give you check later....
XBasic3000
2010-07-05 08:33:55
+1
A:
See RevokeDragDrop on MSDN;
uses
activex;
RevokeDragDrop(RichEdit1.Handle);
Sertac Akyuz
2010-07-05 09:05:22