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
 Show dragged image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 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
begin
  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
end;


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:

xequte

38613 Posts

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

There is a Windows interface available to do this.

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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: