像TEdit这样的控件也有DragMode这个属性 help上面是这样写的: Use DragMode to control when the user can drag the control. Disable the drag-and-drop or drag-and-dock capability at runtime by setting the DragMode property value to dmManual. Enable automatic dragging by setting DragMode to dmAutomatic. 但是无论设置成dmManual还是dmAutomatic,运行程序以后都不可以拖动啊。 那位高手可以指点一下,多谢了!!
dock和drag在计算机术语里面是什么意思?
那些控件都是不可移动的啊
help上面是这样写的:
Use DragMode to control when the user can drag the control. Disable the drag-and-drop or drag-and-dock capability at runtime by setting the DragMode property value to dmManual. Enable automatic dragging by setting DragMode to dmAutomatic.
但是无论设置成dmManual还是dmAutomatic,运行程序以后都不可以拖动啊。
那位高手可以指点一下,多谢了!!
drag表示“拖动”的动作。
另外,不知你所谓的拖动是下面的哪种情况:
A、将文本或其他从一处移到另一处,就像word中移动文本块一样。
B、像word中工具栏的拖动:让一个控件脱离原容器,成为一个独立窗口。
如果是A种情况,还需在onDrogDrop和onDrogOver中添加代码。
B则很简单,只须改属性。请详细说明用途,我会继续关注。别忘记给分哟,我爱Delphi,我更爱分!!!嘿嘿!! (^-^)
drag還可以是控件拖動.
dock則反之.