ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Emulation functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
EmulateDnD (Function)
In french: PiloteDnD
Emulates a "Drag & Drop" gesture in automated tests.
Example
EmulateMouse("WIN_Diag.DIAGEDT_Place.__WinDevAAF_DiagramEditBar_1.LOOP_PresetShapes", ...
emLeftButtonDown, CoordinateEditorToScreen(107), CoordinateEditorToScreen(61))
EmulateDnD("WIN_Diag.DIAGEDT_Place.__WinDevAAF_DiagramEditBar_1" + ...
".LOOP_PresetShapes.IMG_ShapeThumbnail",
29, 27, dndBeginDrag, 3)
EmulateDnD(WIN_Diag.DIAGEDT_Place, 1498, 840, dndDragEnter, 1)
EmulateDnD(WIN_Diag.DIAGEDT_Place, 1910, 957, dndDrop, 0)
EmulateDnD("WIN_Diag.DIAGEDT_Place.__WinDevAAF_DiagramEditBar_1" + ...
".LOOP_PresetShapes.IMG_ShapeThumbnail",
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.
  • 4: Control key.
  • 5: Middle mouse button.
Business / UI classification: Neutral code
Component: wd290testexe.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/21/2022

Send a report | Local help