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
 Drag Image from MV and drop to Windows Explorer?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

982 Posts

Posted - Aug 15 2017 :  18:11:23  Show Profile  Reply
The TImageEnMView DragDrop demos show only how to drag an image from a TImageEnMView to another control.

But I need to drag an image from a TImageEnMView to Windows Explorer where the image should be saved in a predefined format.

There is no file information in the image because the images in the TImageEnMView were created with SetImageFromStream.

BTW, while dragging the selected thumbnail image should be shown underneath the mouse.

Is this possible? Do you have a demo code which shows how to do this?

xequte

39053 Posts

Posted - Aug 15 2017 :  22:51:33  Show Profile  Reply
Hi Peter

You can use TIEFolderMView if you need to drag files to Explorer:

https://www.imageen.com/help/TImageEnFolderMView.AutoDragFiles.html

It is quite different from VCL Drag/Drop.


But in your case you are dealing with memory files only, so you will need to implement your own code to handle it. Look for AutoDragFiles references in iexFolderMView.pas and copy that code to your own app. AFAIK, you will need to save the memory image to file for Windows Explorer.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

982 Posts

Posted - Aug 16 2017 :  08:01:10  Show Profile  Reply
Hi Nigel,

I have solved it in a very nice way with the popular The-Drag-and-Drop-Component-Suite-for-Delphi.

If anybody is interested, I could provide a public Demo for this.
Go to Top of Page

graph_man

328 Posts

Posted - Oct 04 2018 :  19:20:39  Show Profile  Reply
Send me please your demo.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: