Drag and Drop

General TRichView support forum. Please post your questions here
Post Reply
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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\
Post Reply