trichview.com

trichview.support




Re: drag files code?


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/20/2005 16:15:54


It's not possible to enable this effect without a real d&d.

The best way is using real OLE drag&drop instead of VCL drag&drop

(OnDragOver, OnDragDrop, etc.).

You need to implement a source for text d&d. I recommend to use Drag and

Drop Component Suite (free) for this task:

http://www.torry.net/vcl/system/draganddrop/dragdrop.exe, see

TDropTextSource component.

You will be able to drop this text not only in TRichViewEdit, but even in

another applications which accept text drag&drop. And it does not require

any tricks.



>

> Hi,

>

> When dragging a file over RVE a 'shaded caret' moves underneath the

dragging

> position, if you drop then the real caret changes position and inserts the

> file there, but if you don't drop the real caret stays in its original

location.

>

> I want to produce the same effect when using rve.OnDragOver and

rve.OnDragDrop

> (I am inserting some text from another part of my application). Can you

tell

> me code to do the 'shaded caret' effect.

>

> Thanks






Powered by ABC Amber Outlook Express Converter