Drag and Carret Position

General TRichView support forum. Please post your questions here
Post Reply
Mauro

Drag and Carret Position

Post by Mauro »

Hi there,

I'm trying to drag items from a ListBox and Drop inside the richview.

I've used as base the Demos\Delphi\Assorted\Graphics\DragImg\

Everithing works, except that the carret isn't shown while draging over.

The carret is in the correct position, because when I drop the item it's wrote in the position expected.

Any idea of what is missing?

Thanks in advance.

Mauro.
Sergey Tkachenko
Site Admin
Posts: 17520
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This demo uses a real caret, not a fake always-visible drag&drop caret.
A real caret is visible only when the editor has input focus, so call RichViewEdit1.SetFocus when the dragging is started.
Post Reply