Delphi中的跨应用程序拖放 [英] Cross-application drag-and-drop in Delphi

查看:140
本文介绍了Delphi中的跨应用程序拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Windows XP创建一个Delphi应用程序,允许从Windows资源管理器(桌面或文件夹窗口)或其他支持此操作的应用程序(如Total Commander)拖放文件。反之亦然当用户从我的应用程序拖动图标时,我应该能够将拖动的对象的内容设置为自定义数据。



我的目标是创建一个自定义应用程序工具栏,我可以在其上放置应用程序并显示其图标或从中拖动应用程序或其他实体。



这可以如何完成?

I would like to create a Delphi application for Windows XP which allows dropping of files dragged from Windows Explorer (the Desktop or folder windows) or other applications which support this operation (such as Total Commander). What about vice-versa? When the user drags an icon from my application, I should be able to set the contents of the dragged object to custom data.

My goal is to create a custom application toolbar, onto which I can drop applications and show their icons or drag applications or other entities from it.

How can this be done?

推荐答案

这可以使用拖放组件套件完成。它也有你想要的例子。

This can be done with The Drag and Drop Component Suite. It also has examples for what you want.

这篇关于Delphi中的跨应用程序拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆