Source code:
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).
Compiled (+ support for PNG and GIF)[Demo] Indirect drag&drop
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
[Demo] Indirect drag&drop
Last edited by Sergey Tkachenko on Sat Oct 01, 2011 8:28 am, edited 2 times in total.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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)
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)
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
If you want, you can explain here which features it demonstates.