ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Emulation functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
EmulateDnD (Function)
In french: PiloteDnD
Emulates a "Drag & Drop" gesture in automated tests.
Example
EmulateMouse("FEN_Diag.EDIAG_Place.__WinDevFAA_BarreEditDiagramme_1.ZR_FormesPrédéfinies", ...
	emLeftButtonDown, CoordinateEditorToScreen(107), CoordinateEditorToScreen(61))
EmulateDnD("FEN_Diag.EDIAG_Place.__WinDevFAA_BarreEditDiagramme_1" + ...
		".ZR_FormesPrédéfinies.IMG_VignetteForme",
		29, 27, dndBeginDrag, 3)
EmulateDnD(FEN_Diag.EDIAG_Place, 1498, 840, dndDragEnter, 1)
EmulateDnD(FEN_Diag.EDIAG_Place, 1910, 957, dndDrop, 0)
EmulateDnD("FEN_Diag.EDIAG_Place.__WinDevFAA_BarreEditDiagramme_1" + ...
		".ZR_FormesPrédéfinies.IMG_VignetteForme",
		29, 27, dndEndDrag, 3)
Syntax
EmulateDnD(<Control> , <X position> , <Y position> , <Action to perform> , <Status>)
<Control>: Control name
Drag source or drop target control.
<X position>: Integer
X-coordinate at which the action is performed.
<Y position>: Integer
Y-coordinate at which the action is performed.
<Action to perform>: Integer constant
Action to perform:
dndBeginDragInitiates the drag-and-drop operation.
dndDragEnterEnters a drop target.
dndDragLeaveLeaves a drop target.
dndDragOverHovers over a drop target.
dndDropDrops an element on a drop target.
dndEndDragEnds the drag-and-drop operation.
<Status>: Integer
Determines if the keyboard or the mouse were used for the drag-and-drop action. The values are as follows:
  • 1: Left mouse button
  • 2: Right mouse button.
  • 3: SHIFT key on keyboard.
  • 4: CONTROL key on keyboard.
  • 5: Middle mouse button.
Business / UI classification: Neutral code
Component: wd300testexe.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help