Page 1 of 1

[Demo] Indirect drag&drop

Posted: Sun Sep 18, 2005 2:20 pm
by Sergey Tkachenko
Source code:
dropview.zip
(34.38 KiB) Downloaded 1359 times
Compiled (+ support for PNG and GIF)
http://www.trichview.com/support/files/dropview-exe.zip

This demo creates a semitransparent window at the bottom right corner of the screen. The user can drop the dragged data into this window.
The demo opens a viewer window for the dropped data.

The following formats are supported:
- RVF
- RTF
- Hyperlink
- Unicode text
- Text
- Bitmap
- Metafile
- Files (RVF, RTF, text, image)

This demo contains a new component, inherited from TRichView: TRichViewTarget. It accepts the dropped data and loads it in another TRichView or TRichViewEdit (specified in its Receiver property).

[+] History of updates
2008-Dec-9: for compatibility with TRichView 11 and Delphi 2009
2011-Oct-1: for compatibility with TRichView 13.4
2018-Apr-8: for compatibility with TRichView 17.3

Posted: Mon Sep 19, 2005 2:05 pm
by Sergey Tkachenko
Updated.
New event: OnOleDragOver - allows to choose areas where user can drop data
New event: OnOleDropNotAccepted - called after OnOleBeforeDrop if the dropped data are not accepted (for example, dropping files of unknown formats)
Improved: In OnOleBeforeDrop you can disallow dropping (basing on the cursor coordinates)

Posted: Mon Sep 19, 2005 2:24 pm
by Stef
many many thanks,

I'll hope I find some time late this evening to test it.

cheers,

Posted: Tue Sep 20, 2005 8:13 pm
by Stef
Yes, it indeed works great, THANKS AGAIN !!

I've send you a demo (hope the attached file will be accepted),
showing the multidrop target I wanted to build.

cheers,

Posted: Fri Sep 23, 2005 5:04 pm
by Sergey Tkachenko
Stef, I uploaded your demo to http://www.trichview.com/support/files/ ... tiDrop.zip
If you want, you can explain here which features it demonstates.