TreeView Xojo plugin

TreeView.DragOverNode Event

This event is fired when a DragItem is dragged over a node.

DragOverNode(
   node as TreeViewNode,
   nodeIndex as Integer,
   obj as DragItem)

Parameters

node
The directory node that the drag item is over. (see explanations on the picture bellow)
nodeIndex
The screen index of the directory node that the drag item is over.
obj
The DragItem that is over the node.

Remarks

If the TreeView DragReceiveBehavior is set to 1 (Directory nodes) then text bellow applies, otherwise all nodes can get DragOverNode event.

When DragReceiveBehavior = 1:
If the drag is over a node that is not a directory then the drag is over the area of the parent node.

The picture bellow will show the possible drop zones


If within the red rectangle then the node parameter is nil as it is the Root node that the drag item is over. If within the green rectangle then the node parameter will return the Test4 node. If within the orange rectangle then the node parameter will return the Test4b node. If within blue or light blue then the node parameter will return those nodes.

Note
This event is only supported and only visible when using REALbasic 2006 or later.

See Also

TreeView Control