dragDrop

dragDrop(win:     Window input;         (Form)
         x:       Real;
         y:       Real);

dragDrop(control: control-name input;   (Control)
         win:     Window input;
         x:       Real;
         y:       Real);

The dragDrop event occurs when a dragged window is dropped over a form or control belonging to the same application. The drop part of the drag and drop process occurs when the user causes a mouseUp event (that is, drag mode is terminated when the left, right, or middle mouse button is released) or when the logic sets the dragMode property of the window that is being dragged to DragMode_Drop (2).

See also the dragListIndex, dragColumn, dragRow, and dragSheet properties.

No dragDrop event is issued if the drag process is terminated by setting the dragMode property to DragMode_None (0).

The win parameter specifies the window that is being dragged.

The x and y parameters specify the physical horizontal and vertical positions where the window was dropped, respectively. The positions are in the units of the scaleMode property of the form or control.

For details about converting to logical positions within the window that has been scrolled, see the scrollHorzPos property.