Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drag&Drop file from my application

Posted on 1998-01-18
12
Medium Priority
?
172 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
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…
Suggested Courses

722 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