RectControl.DragOver

From Xojo Documentation

Event


RectControl.DragOver(x as Integer, y as Integer, obj as DragItem,Action as Integer) As Boolean

New in 2005r5

Supported for all project types and targets.

Fires when the DragItem is over the RectControl.

Notes

The Obj parameter is the object being dragged. The coordinates x and y are relative to the RectControl. Returns a Boolean. Return True from this event to prevent the drop from occurring.

The Action parameter specifies the drag action, which is typically done by holding down a modifier key (Shift, Alt, Option, Command, etc.) while doing the drag. It can take the following class constants of the DragItem class:

Value Constant
0 DragItem.DragActionDefault
1 DragItem.DragActionCopy
2 DragItem.DragActionMove
3 DragItem.DragActionLink