Drag and drop

General TRichView support forum. Please post your questions here
Post Reply
Hans H
Posts: 14
Joined: Tue May 27, 2008 9:17 am

Drag and drop

Post by Hans H »

How can I reposition a whole text line in RichviewEdit by draging it?
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The selection must start at the beginning of the line and must end at the beginning of the next line.
Hans H
Posts: 14
Joined: Tue May 27, 2008 9:17 am

Drag and drop

Post by Hans H »

Sergey Tkachenko wrote:The selection must start at the beginning of the line and must end at the beginning of the next line.
Yes, off course. My problems starts while dropping. I want the line to be dropped not in the middle of a line but as an item under it. The problem is that I can't find a way to override the default dropping.

Some time since last time I spoke with you, Sergey. Hope everything is vell with you.

Hans
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

There are events OnOle***, related to drag&drop.
But they are quite low level events.
Dropped content will start from the new line, if the selection started at the end of the previous line.
Post Reply