DragM action to simulate a dragging event that is performed with the middle mouse button over an onscreen object or window.
TestObj.DragM(ClientX, ClientY, toX, toY, Shift)
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
|Shift||[in]||Optional||TShiftKey||Default value: skNoShift|
All onscreen objects.
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The method has the following parameters:
Specifies the horizontal coordinate of the start point for DragMging. This coordinate is relative to the object, it is not a screen coordinate.
Specifies the vertical coordinate of the start point for DragMging. This coordinate is relative to the object, it is not a screen coordinate.
Specifies the horizontal DragMging distance in pixels.
Specifies the vertical DragMging distance in pixels.
DragM action works in the following manner:
Desktop testing: If TestObj refers to an object of a non-DPI-aware application running with a DPI setting other than 100%, set the ClientX, ClientY, toX and toY parameter values relative to the application (as if the application is running with the 100% DPI setting).
Web testing: If the Use CSS pixels for scaled pages option is enabled (by default), set the ClientX, ClientY, toX and toY parameter values relative to the web page, regardless of the browser zoom and the system's DPI setting.
In order to simulate dragging actions on Telerik RAD controls for Silverlight, increase the value of the Dragging delay project option (default value is 5 milliseconds, recommended value is 50 milliseconds or higher). Otherwise the dragging actions may not be simulated correctly.