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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Show dragged image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


748 Posts

Posted - May 17 2023 :  04:49:05  Show Profile  Reply
I handle a dragged IEN file from a TImageEnFolderMView while dragging over a TImageEnView:

procedure TForm1.ImageEnView1DragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);
// while dragging the ImageEnFolderMView1 image over ImageEnView1
  if (Source is TImageEnFolderMView) then // if the dragged image comes from ImageEnFolderMView1
    Accept := True      // drag-drop cursor is shown
  else Accept := False; // not-accepted cursor is shown

This shows only the standard drag cursor:

How can I show the dragged image instead of the standard drag cursor? Like when dragging an image file e.g. in Windows File Explorer:


37664 Posts

Posted - May 17 2023 :  23:09:43  Show Profile  Reply

There is a Windows interface available to do this.

Take a look at the fDropTargetHelper code for TIEFileDragDrop in iexWindowsFunctions.

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: