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
 Built-in drag&drop?

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 - Apr 29 2020 : 17:16:27
Does TImageEnView have a BUILT-IN feature to drag & drop the displayed image to Windows Explorer (to generate the displayed image as an image file in a predefined format)? So I don't have to write the code for it each time I need this feature.

That would be VERY USEFUL!
5   L A T E S T    R E P L I E S    (Newest First)
PeterPanino Posted - May 01 2020 : 09:13:44
Thanks Nigel, I meanwhile use TDropFileSource from the Drag-and-Drop-Component-Suite (https://github.com/DelphiPraxis/The-Drag-and-Drop-Component-Suite-for-Delphi).
xequte Posted - Apr 30 2020 : 17:52:02
Sorry, I misread your message (our components are two closely named).

Yes, that can be down with TIEFileDragDrop.

I just tested the code and it works fine here. What issues are you having with it?

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Apr 30 2020 : 04:24:20
But I NEED to drag & drop from a TImageEnView to Windows Explorer! And the documentation example says "Allow image to be dragged from a TImageEnView (to Windows Explorer, for example)". Is the documentation wrong?
xequte Posted - Apr 30 2020 : 04:16:52
Hi Peter

Just use a TImageEnFolderMView which support drag and drop (you need to enable it).

See the demo, \Multi\FolderMView\FolderMView.dpr for more info.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Apr 29 2020 : 17:54:14
Found this example in the documentation (TIEFileDragDrop):

Drag Example

// Allow image to be dragged from a TImageEnView (to Windows Explorer, for example)
procedure TForm1.ImageEnView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
var
  ssFiles: TStringList;
begin
  if GetKeyState(VK_LBUTTON) < 0 then // Mouse left button is down
  begin
    ssFiles := TStringList.Create;
    ssFiles.Text := ImageEnView1.IO.Params.FileName;
    IEFileDragDrop1.InitiateDragging( ssFiles, [iedaCopy] );
    FreeAndNil(ssFiles);
  end;
end;


But it does not work.

How to make it work?