TreeView.BeginDragNode Event
This event is fired when the user begins to drag a node.

BeginDragNode(
node
as TreeViewNode,
nodeIndex
as Integer,
drag
as DragItem)
Parameters
- node
- The node that will be dragged.
- nodeIndex
- The screen index of the node that will be dragged.
- drag
- The DragItem for this drag operation.
Remarks
For this event to ever fire then you have to return true from the MouseDown event.
To use this event:
Function MouseDown(x as Integer,y as Integer,isRightButton as Boolean) As Boolean
// We return true here to Enable the BeginDragNode event
return true
End Function
Sub BeginDragNode(node as TreeViewNode,nodeIndex as Integer,drag as DragItem)
// ------------
// Here you might want to put some data on the drag item
// ------------
drag.Drag()
End Sub
Note: This event is only supported and only visible on REALbasic 2006 and later.
See Also
TreeView Control