Solved

Drag&Drop file from my application

Posted on 1998-01-18
12
162 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
QRReport  TQrmemo vertical stretching 1 47
JAudiorecorder record freezing the app 29 67
Installshield for Embarcadero EX 10.1 Berlin 4 42
MS Access from Delphi 31 32
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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