Solved

Drag&Drop file from my application

Posted on 1998-01-18
12
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month6 days, 7 hours left to enroll

634 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