Drag&Drop file from my application

I have a TStringGrid with one file name on each row. When I select a row and try to drag that file over to another application, I'd like to show the Drag Mouse Cursor and give the file name to the receiving application. How can I do this?
fribergAsked:
Who is Participating?
 
interConnect With a Mentor Commented:
Ok friend, if any comment or question about Drag'n drop, let us discuss.
Sincerely,
Igor
0
 
michael2010898Commented:
To change the cursor use the cursor property
0
 
JimBob091197Commented:
I do not think that you can use standard Delphi drag-drop between 2 different applications.  (It is easy between 2 controls in the same app.)

To drag-drop between 2 different apps you could use IDropTarget & IDropSource (with IDataObject) (if you are using Delphi 2 or 3).

JB
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
interCommented:
Dear friberg,
Implementing a drop to your application is very simple. However draging from your application and drop to another application or explorer is more difficult. To do the latter one should have a knowledge of OLE and COM(component object model).

Now, tell me if you want to implement both of them or just drop to another application so that I send you the VCL component.
0
 
fribergAuthor Commented:
Dear inter,
I'd like to implement dragging files both from my application (to explorer) and to my application (from explorer).

Thanks!
0
 
interCommented:
So,
The dragsource component is 18K and droptarget component is 4K. If you send me your email, I can post them to you. If it satisfy you, I post the answer later.
0
 
JimBob091197Commented:
Inter:  Please mail them to davekw@iafrica.com too.  Much appreciated...

0
 
fribergAuthor Commented:
My email is friberg@mfsoft.com.
I look forward to your answer.
0
 
interCommented:
Could you receive the mail! Let me know please.

0
 
JimBob091197Commented:
I got your mail.  Thanks very much.  I have mailed you back.  Did you get it?

JB
0
 
fribergAuthor Commented:
Inter, thanks! It seems to be exactly what I needed.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.