PC SOFT

WINDEV的在线文档

  • Variables
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Indicates the action accepted by the target of Drag/Drop and manages the mouse cursor during Drag/Drop.

Note: 鼠标拖放接受 must be used during the call to the 鼠标拖放.释放 event (鼠标拖放事件).

例子
// Procedure called by the dndDrop event
过程OnDrop()
// Only the move is allowed (not the copy)
鼠标拖放接受鼠标拖放.移动

语法
鼠标拖放接受(<Authorized Action>)
<Authorized Action>: Constant
Action allowed on the target control:
鼠标拖放.复制Copying data is allowed in the target control. The copy cursor will be displayed during the copy:
鼠标拖放.移动Moving data is allowed in the target control. The move cursor will be displayed during the move:
鼠标拖放.默认Copying data or moving data is allowed in the target control.
The default cursor will be displayed during the move:
(to perform a copy, keep the "Ctrl" key down when moving the data. The default cursor will be:).
鼠标拖放.禁止No action is allowed in the target control. The "forbidden" cursor will be displayed during the copy/move:

注意

Variables

The following variables can be used:
Name of the variableDescription
鼠标拖放.操作Action specified in 鼠标拖放接受.

The possible values are as follows: 鼠标拖放.复制, 鼠标拖放.移动 and 鼠标拖放.禁止.

This variable is not filled at the beginning of Drag and Drop in a source control (鼠标拖放.开始拖动 constant) or when exiting from a target control (鼠标拖放.离开控件 constant).
鼠标拖放.目标控件Name of the target control.

This variable is not filled at the beginning of Drag and Drop in a source control (鼠标拖放.开始拖动 constant) or when exiting from a target control (鼠标拖放.离开控件 constant).
鼠标拖放.源控件Name of the source control.
鼠标拖放.按下CtrlStatus of the [Ctrl] key:
  • True: the [Ctrl] key is pressed.
  • False: the [Ctrl] key is not pressed.
This variable is not filled at the beginning of Drag and Drop in a source control (鼠标拖放.开始拖动 constant) or when exiting from a target control (鼠标拖放.离开控件 constant).
鼠标拖放.源窗口Name of the source window.

This variable is not filled when exiting from a target control (鼠标拖放.离开控件 constant).
鼠标拖放.鼠标水平位置Horizontal position (X) of the mouse cursor in relation to the control handled during the event.

This variable is not filled when exiting from a target control (鼠标拖放.离开控件 constant).
鼠标拖放.鼠标垂直坐标Vertical position (Y) of the mouse cursor in relation to the control handled during the event.

This variable is not filled when exiting from a target control (鼠标拖放.离开控件 constant).

The 鼠标拖放.源控件 and 鼠标拖放.源窗口 variables return an empty string ("") when the Drag and Drop comes from an application other than the current application.

During a Drag/Drop, the data found in the source must be deleted by programming in the code corresponding to the "Drop" (to do so, test 鼠标拖放.操作 and 鼠标拖放.源控件).

组件
WinDev wd200obj.dll