[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Drag&Drop file from my application

Posted on 1998-01-18
12
Medium Priority
?
176 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:friberg
  • 4
  • 3
  • 3
  • +2
12 Comments
 

Expert Comment

by:michael2010898
ID: 1356947
To change the cursor use the cursor property
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1356948
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
 
LVL 5

Expert Comment

by:ronit051397
ID: 1356949
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:inter
ID: 1356950
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
 

Author Comment

by:friberg
ID: 1356951
Dear inter,
I'd like to implement dragging files both from my application (to explorer) and to my application (from explorer).

Thanks!
0
 
LVL 5

Expert Comment

by:inter
ID: 1356952
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
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1356953
Inter:  Please mail them to davekw@iafrica.com too.  Much appreciated...

0
 

Author Comment

by:friberg
ID: 1356954
My email is friberg@mfsoft.com.
I look forward to your answer.
0
 
LVL 5

Expert Comment

by:inter
ID: 1356955
Could you receive the mail! Let me know please.

0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1356956
I got your mail.  Thanks very much.  I have mailed you back.  Did you get it?

JB
0
 

Author Comment

by:friberg
ID: 1356957
Inter, thanks! It seems to be exactly what I needed.

0
 
LVL 5

Accepted Solution

by:
inter earned 200 total points
ID: 1356958
Ok friend, if any comment or question about Drag'n drop, let us discuss.
Sincerely,
Igor
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question