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 procedure to run during an event of Drag/Drop.

Note: To manage by programming the behavior of a control during a Drag and Drop operation, use ..鼠标拖放目标 and ..鼠标拖放源 associated with the 鼠标拖放.程序 constant.

例子
// Call to the OnDrop procedure when the left mouse button
// is released on the target control named "EDT_Find"
鼠标拖放事件"OnDrop"EDT_Find鼠标拖放.释放

语法
鼠标拖放事件(<Procedure> , <Control Name> , <Type of Event>)
<Procedure>: Character string
Name of the procedure that must be called during the <Type of Event> event on the <Control Name> control.
<Control Name>: Character string (with or without quotes)
Name of the control on which the event must be processed.
<Type of Event>: Constant
Type of event triggering the call to <Procedure>:
鼠标拖放.开始拖动Beginning of a Drag/Drop in a source control
鼠标拖放.进入控件Entry in a target control
鼠标拖放.结束拖动End of Drag/Drop
鼠标拖放.释放Release the left mouse button on a target control
鼠标拖放.离开控件Exit from a target control
鼠标拖放.滑过Hover a target control

注意

Variables

The following variables can be used:
Variable nameDescription
鼠标拖放.操作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.

组件
WinDev wd200obj.dll