ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Dragging image from TImageEnMView to File Explorer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Jul 12 2020 :  09:37:04  Show Profile  Reply
There are several demos showing how to DRAG an image FROM a TImageEnMView.

However, I've found no demo showing the following cases:

• DRAG an image FROM a TImageEnMView to Windows File Explorer

• DRAG an image FROM a TImageEnMView to a window of another application containing an instance of a TImageEnView control

BTW, the images in the TImageEnMView have NO file references, as they have been added to the TImageEnMView by ImageEnMView1.MIO.LoadFromURL.

Does anybody have such demos?

xequte

38608 Posts

Posted - Jul 12 2020 :  22:02:04  Show Profile  Reply
Hi Peter

There are no specific demos for this, but here's some more detail:

> DRAG an image FROM a TImageEnMView to Windows File Explorer

TImageEnFolderMView allows you to drag images and drop them into other applications, such as Explorer. TImageEnFolderMView can actually be used the same as TImageEnMView as it descends from it (i.e. you don't have to use it to browse folders).

However, in your case, there are no physical images, which complicates matters. You would be better to write your own dragging code, but you will need to create a temporary file every time the user starts dragging (slow for small large images) or for your entire image set. You will then need to ensure you delete said temporary images.

Take a look at the dragging code in iexFolderMView.pas and also TIEFileDragDrop:

https://www.imageen.com/help/TIEFileDragDrop.html


> DRAG an image to another application containing an instance of a TImageEnView control

The code to handle dropping on a file onto an application is very simple, and you can find it by googling.

If you want to specifically handle dropping to a control, then use TIEFileDragDrop or similar code.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: