拖放工具栏按钮 [英] Drag and drop of Toolbar button
问题描述
大家好,
我的工具栏包含4个按钮线,矩形,圆,椭圆,
我想为我的工具栏实现拖放功能,
使用的可以从工具栏选择形状将其拖放到客户区域和他/她放置的地方,并在该地方绘制鼠标相关的形状,
我从来没有尝试过拖放.
因此,请给我任何想法或启动方式,或者从哪里开始,或者代码段,以便我可以实现自己想要的.
谢谢,
桑托什·达纳瓦德
________________________________________
Hi all,
I have toolbar that contains 4 buttons Line,rectangle,circle,Elipse,
I want to implement drag and drop functionality for my toolbar that is,
used can Select shape from Toolbar drag it and drop on client area and place where he/she drop the a mouse related shape should be drawn on that place,
I''m never tried drag and drop still.
So please give me any idea or startup or from where i should start,or block of code so that i can implement what i want.
Thanks,
santosh dhanawade
________________________________________
推荐答案
如果您知道在鼠标单击上方执行上述操作背后的想法,则也很容易在拖放操作中解决.事件!
if u know the idea behind the implementation of above durng a mouse click it is easy to solve in drag and drop too.Write code in mouse Right button release event!!
这篇关于拖放工具栏按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!