TreeView Xojo plugin

TreeView.MouseDrag Event

The MouseDrag event is fired when a mouse drag event is generated within the control.

MouseDrag(
   x as Integer,
   y as Integer)

Parameters

x
The x coordinate of the mouse relative to the control.
y
The y coordinate of the mouse relative to the control.

Remarks

Use the NodeFromPoint to query which node or part was clicked.

The MouseDrag event behaves like any REALbasic MouseUp event where it does not normally fire unless if true was returned from MouseDown. Note that the control it self might have returned true for MouseDown in some cases where the control internally needs the MouseDrag event.

The internal handling of MouseDrag can be canceled by setting the CancelEventAction property to true.

Note:
On some platforms clicking on the scrollbar will not generate a mouse drag event.

See Also

TreeView Control