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
Indicates the action accepted by the target of Drag/Drop and manages the mouse cursor during Drag/Drop.
Note: DnDAccept must be used during the call to the dndDrop event (DnDEvent).
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.
// Procedure called by the dndDrop event
PROCÉDURE OnDrop()
// Only the move is allowed (not the copy)
DnDAccept(dndMove)
Syntax
DnDAccept(<Authorized Action>)
<Authorized Action>: Constant
Action allowed on the target control:
dndCopyCopying data is allowed in the target control. The copy cursor will be displayed during the copy:
dndMoveMoving data is allowed in the target control. The move cursor will be displayed during the move:
dndDefaultCopying 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: ).
dndNoneNo action is allowed in the target control. The "forbidden" cursor will be displayed during the copy/move:
Remarks

Variables

The following variables can be used:
Variable nameDescription
_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 [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.
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 _DND.Action and _DND.SourceControl).
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