Solved

Drag&Drop file from my application

Posted on 1998-01-18
12
160 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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 50 total points
ID: 1356958
Ok friend, if any comment or question about Drag'n drop, let us discuss.
Sincerely,
Igor
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now