Page 1 of 1

Posted: Fri Mar 30, 2012 3:12 pm
by Sergey Tkachenko
The recommended way of implementation of drag&drop is using OLE drag&drop. It is quite simple to implement using Drag&Drop Component Suite by Anders Melander. The example can be found here: http://www.trichview.com/forums/viewtopic.php?t=3407
In this way, you do not need to worry about the caret position, because this is a real drag&drop supported by TRichViewEdit.

If you want to implement a simulation of drag&drop, for example using VCL's drag&drop, see the demo in Demos\*\Assorted\Graphics\DragImg\