|鼠标拖放强制 is kept for backward compatibility.|
In this version, there is no need to specify the action performed by the source control. 鼠标拖放光标, that manages the mouse cursor during Drag and Drop, also specifies the action allowed during Drag and Drop.
The documentation for 鼠标拖放强制 is as follows.
Indicate the action run by the source (drag/drop).
<Action> is an integer that can take for value:
- 鼠标拖放.复制(the data will be copied).
- 鼠标拖放.移动 (the data will be moved).
- 鼠标拖放.默认 (the data will be moved or copied according to the operations).
Details鼠标拖放强制 indicates whether the source control allows:
- no action
- to move the data (the data will be cut from the source)
- to copy the data (the data will be copied, it remains in the source)
Notes鼠标拖放强制 is used to force the data found in the source control to be copied or moved.
鼠标拖放接受 indicates the action accepted in the target.
The following variables can be used:
- 鼠标拖放.操作 to find out the action of Drag/Drop
- 鼠标拖放.目标控件 to find out the name of the target control
- 鼠标拖放.源控件 to find out the name of the source control in the window
- 鼠标拖放.按下Ctrl to find out the status of the [CTRL] key
- 鼠标拖放.源窗口 to find out the name of the source window
- 鼠标拖放.鼠标水平位置 to find out the X coordinate of the mouse during the event
- 鼠标拖放.鼠标垂直坐标 to find out the Y coordinate of the mouse during the event