object.setDragEnabled: Allow the user to drag the object when selecting it by its title bar.
object.setDragEnabled (flag)
flag
If true the drag is enabled
The title Bar of the object must exist to drag the object.
See the setTitleBar method of BarStyle and DFrameStyle