Page 1 of 1

Drag and Carret Position

Posted: Thu Oct 27, 2005 7:01 pm
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.

Posted: Thu Oct 27, 2005 9:29 pm
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.