Control - DragDrop Event

Fired on mouse up to signify the end of a drag process

Member of Control (PRIM_CTRL)

Parameters

NameTypeData TypeDescription
PosX*InputIntegerVertical position of the cursor in pixels
PosY*InputIntegerHorizontal position of the cursor in pixels
Source*InputPRIM_CTRLReference to the component that started the drag process
Payload*InputPRIM_OBJTGeneric object that can be used to pass data as part or the drag and drop process
AggregatedSource*InputPRIM_CTRLReference to the component that started the drag process when the drag style is Aggregated
Origin*InputPRIM_CTRLReference to the control on which the event was initially fired
Handled*BothBooleanSet to true to stop the event being propagated to the parent control
DragResult*BothEnumerationSpecifies 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.

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2