Control - DragDrop Event
Fired on mouse up to signify the end of a drag process
Member of Control (PRIM_CTRL)
Parameters
Name |
Type |
Data Type |
Description |
PosX |
*Input |
Integer |
Vertical position of the cursor in pixels |
PosY |
*Input |
Integer |
Horizontal position of the cursor in pixels |
Source |
*Input |
Reference to the component that started the drag process |
|
Payload |
*Input |
Generic object that can be used to pass data as part or the drag and drop process |
|
AggregatedSource |
*Input |
Reference to the component that started the drag process when the drag style is Aggregated |
|
Origin |
*Input |
Reference to the control on which the event was initially fired |
|
Handled |
*Both |
Boolean |
Set to true to stop the event being propagated to the parent control |
DragResult |
*Both |
Enumeration |
Specifies the result of the drag and drop process |
Details
The DragDrop event is fired when the left mouse button is released during a drag and drop process.
It is the third event in the drag and drop process - StartDrag, DragOver, [DragDrop and EndDrag
The DragDrop event is used to handle a successfully completed drag and drop.
External drag and drop e.g. from Windows Explorer, is supported through the use of #sys_appln.AllowWindowsDragDrop property and the FilePaths object.