[Demo] Indirect drag&drop

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 14115
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Demo] Indirect drag&drop

Post by Sergey Tkachenko » Sun Sep 18, 2005 2:20 pm

Source code:
dropview.zip
(34.38 KiB) Downloaded 85 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
Last edited by Sergey Tkachenko on Sat Oct 01, 2011 8:28 am, edited 2 times in total.

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

Post by Sergey Tkachenko » Mon Sep 19, 2005 2:05 pm

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)

Stef
Posts: 90
Joined: Mon Aug 29, 2005 9:56 am
Contact:

Post by Stef » Mon Sep 19, 2005 2:24 pm

many many thanks,

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

cheers,

Stef
Posts: 90
Joined: Mon Aug 29, 2005 9:56 am
Contact:

Post by Stef » Tue Sep 20, 2005 8:13 pm

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,

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

Post by Sergey Tkachenko » Fri Sep 23, 2005 5:04 pm

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.

Post Reply