DragNDRop From Explorer

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
win568
Posts: 44
Joined: Tue Mar 24, 2015 1:00 pm

DragNDRop From Explorer

Post by win568 » Wed May 06, 2015 4:18 pm

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.

Romain
Posts: 15
Joined: Wed Jun 03, 2015 4:12 pm

Re: DragNDRop From Explorer

Post by Romain » Wed Jun 03, 2015 4:39 pm

Hello

Sorry for the delayed reply.

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

Please let us know if you need further informations.

With best regards,
Romain
GdPicture Team

dsops
Posts: 2
Joined: Fri Jul 11, 2014 1:10 pm

Re: DragNDRop From Explorer

Post by dsops » Wed Aug 05, 2015 11:45 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest