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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Dragging image from TImageEnMView to File Explorer

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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