PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves a specific type of data during Drag/Drop.
Versions 17 and later
WEBDEV - Browser code This function is now available in Browser code.
New in version 17
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code This function is now available in Browser code.
// Retrieve the "CF_TEST" data
IF DnDIsDataAvailable(CF_TEXT) = True THEN
ResRetrieve = DnDGetData(CF_TEXT)
END
Syntax
<Result> = DnDGetData(<Type of Data> [, <Number of Characters>])
<Result>: Character string
Data retrieved.
<Type of Data>: Integer or character string
Type of data to retrieve:
  • Preset data types:
    Only some types of data are presented below. See the Microsoft documentation ("Standard Clipboard Formats") for more details.
    CF_TEXT1ANSI string ending with a \0 character
    CF_BITMAP2.BMP (bitmap image)
    CF_METAFILEPICT3.WMF (graphic primitive file)
    CF_SYLK4.SLK, Excel, Multiplan
    CF_DIF5Data interchange format (lotus)
    CF_TIFF6.TIF (TIFF image)
    CF_OEMTEXT7OEM string ending with a \0 character
    CF_DIB8.DIB (bitmap independent from the device managers)
    CF_PALETTE9Palette (Windows standard)
    CF_PENDATA10Optical pen
    CF_RIFF11Audio format
    CF_WAVE12.WAV (sound data)
    CF_UNICODETEXT13Text string with characters coded on 2 bytes (support for internationalization)
    CF_ENHMETAFILE14.EMF (Windows 32-bit graphic primitives )
    CF_HDROP15Format of "dropped" file (in Windows NT)
    CF_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.
<Number of Characters>: Optional integer
Number of characters to retrieve.
Remarks

Variables

The following variables can be used:
Name of the variableDescription
_DND.ActionAction specified in DnDAccept.
The possible values are as follows: dndCopy, dndMove and dndNone.
This variable is not filled at the beginning of Drag and Drop in a source control (dndBeginDrag constant) or when exiting from a target control (dndDragLeave constant).
_DND.TargetControlName of target control.
This variable is not filled at the beginning of Drag and Drop in a source control (dndBeginDrag constant) or when exiting from a target control (dndDragLeave constant).
_DND.SourceControlName of Source Control.
_DND.CtrlDownStatus 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 (dndBeginDrag constant) or when exiting from a target control (dndDragLeave constant).
_DND.SourceWinName of source window.
This variable is not filled when exiting from a target control (dndDragLeave constant).
_DND.MouseXPosHorizontal position (X) of mouse cursor in relation to the control handled during the event.
This variable is not filled when exiting from a target control (dndDragLeave constant).
_DND.MouseYPosVertical position (Y) of mouse cursor in relation to the control handled during the event.
This variable is not filled when exiting from a target control (dndDragLeave constant).
The _DND.SourceControl and _DND.SourceWin variables return an empty string ("") when the Drag and Drop comes from an application other than the current application.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment