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\
Drag and Drop
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: