PC SOFT

WINDEV的在线文档

文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

鼠标拖放强制 (函数)

鼠标拖放强制 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.

 

Purpose

Indicate the action run by the source (drag/drop).

Syntax

鼠标拖放强制 (<Action>)

<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