PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
DnDForce (Function)
In French: DnDImpose
DnDForce is kept for backward compatibility.

In this version, there is no need to specify the action performed by the source control. DnDCursor, that manages the mouse cursor during Drag and Drop, also specifies the action allowed during Drag and Drop.

The documentation about DnDForce is as follows.
 
Purpose
Indicating the action run by the source (drag/drop).
Syntax
DnDForce (<Action>)
<Action> is an integer that can take for value:
  • dndCopy (the data will be copied).
  • dndMove (the data will be moved).
  • dndDefault (the data will be moved or copied according to the operations).
Details
DnDForce 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
DnDForce is used to force the data found in the source control to be copied or moved.

DnDAccept indicates the action accepted in the target.

The following variables can be used:
  • _DND.Action to find out the action of Drag/Drop
  • _DND.TargetControl to find out the name of the target control
  • _DND.SourceControl to find out the name of the source control in the window
  • _DND.CtrlDown to find out the status of the [CTRL] key
  • _DND.SourceWin to find out the name of the source window
  • _DND.MouseXPos to find out the X coordinate of the mouse during the event
  • _DND.MouseYPos to find out the Y coordinate of the mouse during the event
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment