Language Reference Guide : Events : DragDrop Event
 
Share this page          
DragDrop Event
A DragDrop event occurs when a user is dragging an object and releases the primary mouse button over a field that will accept the object being dragged.
This event has the following syntax:
on dragdrop [activefieldname]
activefieldname is unnecessary if the statement is in a field script.
The following attributes of the FrameExec class can be used in the DragDrop event block:
TriggerField
Specifies the field over which the mouse button was released
MessageObject
Specifies a DragInfo object that provides information about the object that was dragged and the position of the mouse when the mouse button was released.
If the trigger field is a ListviewField or a TableField, the Drop_row attribute indicates the row over which the drop occurred. If the drag source field is a ListviewField or a TableField, the Drag_row attribute indicates the row in the source field over which the drag-and-drop operation began.
If the trigger field is a TreeviewField, the CurNode attribute specifies the node over which the drop occurred. If the drag source field is a TreeviewField, the TreeviewField's TriggerNode attribute specifies the tree node over which the drag-and-drop operation began.