ChildDragDrop Event
A ChildDragDrop 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 childdragdrop [compositefieldname]
If you specify compositefieldname, the event occurs only if the drop operation ends over a child of the specified CompositeField.
The following attributes of the FrameExec class can be used in the ChildDragDrop event block:
TriggerField
Specifies the field over which the mouse button was released
OriginatorField
Specifies the field, if any, specified in the ChildDragDrop statement
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.
Last modified date: 12/20/2023