Page 1 of 1

DragNDRop From Explorer

Posted: Wed May 06, 2015 4:18 pm
by win568
Hi

We use the ThumbnailEx with the Viewer Control. Is there a possibility to Add Images from the Explorer to the Thumbail ?? We want to give the user the opportunity to add it with DragNDrop. If this is possible, do you have any examples. We use the GDPicture with Delphi.

Re: DragNDRop From Explorer

Posted: Wed Jun 03, 2015 4:39 pm
by Romain
Hello

Sorry for the delayed reply.

You need to set the AllowDropFiles property of the ThumbnailEx control to true : https://www.gdpicture.com/guides/gdpicture/web ... Files.html.
After that, users can do drag and drop files from Explorer. You can do the same for the viewer : https://www.gdpicture.com/guides/gdpicture/web ... pFile.html

Please let us know if you need further informations.

With best regards,
Romain
GdPicture Team

Re: DragNDRop From Explorer

Posted: Wed Aug 05, 2015 11:45 am
by dsops
In the standard .net drag&drop implementation the events / overwrites DragEnter / DragOver can be used to reject wrong files. In the Viewer control the events do not rise, so I only can allow drop files for all file types / combinations. The user can drag exe, dll, folders, the effect is "Copy", but I cannot process them, because the only reasonable implementation wants to open a file (in my situation a PDF) or do something with one file (overlay / underlay). I cannot explain to the user that I cannot do this. Please send me a hint. In the thumbnail control I found a ListView inside and I captured its events. For the viewer all my tries failed.