T O P I C R E V I E W |
PeterPanino |
Posted - Jul 12 2020 : 09:37:04 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? |
1 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Jul 12 2020 : 22:02:04 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
|
|
|