像窗户一样拖放 [英] drag and drop like windows

查看:94
本文介绍了像窗户一样拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我怎样才能显示像windows一样的拖动效果

从windows文件夹中拖动它就像:

< img src = http://im54.gulfup.com/beBcLA.png/>

但是当拖到我的应用程序时它就像:

< img src =http: //im54.gulfup.com/2Loa8B.png/>

hello
how can i display drag effect like windows
while dragging from windows folder it's like:
<img src="http://im54.gulfup.com/beBcLA.png" />
but when drag to my app it's like:
<img src="http://im54.gulfup.com/2Loa8B.png" />

推荐答案

这并不像看起来那么简单。你可以参考这个 [ ^ ]。



基本上你必须绘制自己的图标,并使用拖放事件用鼠标移动它。尝试提供的示例,如果您遇到问题,请再次询问。
That is not as simple as it looks. You may refer this[^] for an example.

Basically you must draw your own icon and using drag and drop events move it with the mouse. Try the example provided and if you've got problems ask again.


这篇关于像窗户一样拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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