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本地访问

Checks whether a specific type of data is available during Drag/Drop.

例子
// Only the "CF_TEXT" copy is allowed
如果鼠标拖放数据类型可用鼠标拖放.TEXT)=,那么
ResRetrieve鼠标拖放获取数据鼠标拖放.TEXT
结束

语法
<Result> = 鼠标拖放数据类型可用(<Type of Data>)
<Result>: Boolean
  • if the specified type of data is available,
  • otherwise.
<Type of Data>: Integer or character string
Type of data copied/moved (corresponds to the type of data specified by 鼠标拖放数据类型 and 鼠标拖放获取数据).

  • Preset data types:
    Only some types of data are presented below. See the Microsoft documentation ("Standard Clipboard Formats") for more details.
鼠标拖放.TEXT1ANSI string ending with a \0 character
鼠标拖放.BMP2.BMP (bitmap image)
鼠标拖放.WMF3.WMF (graphic primitive file)
鼠标拖放.SYLK4.SLK, Excel, Multiplan
鼠标拖放.DIF5Data interchange format (lotus)
鼠标拖放.TIF6.TIF (TIFF image)
鼠标拖放.OEM7OEM string ending with a \0 character
鼠标拖放.DIB8.DIB (bitmap independent from the device managers)
鼠标拖放.PALETTE9Palette (Windows standard)
鼠标拖放.PENDATA10Optical pen
鼠标拖放.RIFF11Audio format
鼠标拖放.WAF12.WAV (sound data)
鼠标拖放.UNICODETEXT13Text string with characters coded on 2 bytes (support for internationalization)
鼠标拖放.EMF14.EMF (Windows 32-bit graphic primitives )
鼠标拖放.HDROP15Format of "dropped" file (in Windows NT)
鼠标拖放.LOCALE16Format local to Windows (in Windows NT)

  • Character string:
    Type of data created beforehand.
    For example:
    Data1 is string = CUSTOMER.KEY + TAB + INVOICE.PRICE
    DnDCacheData("MyType", Data1)

    The "MyType" type will correspond to what was assigned to the "Data" string.

注意

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.

组件
WinDev wd200obj.dll