TreeView Xojo plugin

TreeView.SelectionChanged Event

This event is fired when the selection changes.

SelectionChanged()

Parameters

Remarks

To query what is selected in single selection mode then use the SelectedIndex property.

Example:

Dim node as TreeViewNode

if me.SelectedIndex >= 0 then
    node = me.SelectedNode()
   
    // Do something with the node here
end if


To query what is selected in multi selection mode then use the SelectedNodes property.

Example:
Dim node as TreeViewNode
Dim selectedNodes as ObjectCollection

selectedNodes = me.SelectedNodes

selectedNodes.MoveFirst()

while selectedNodes.HasNext()
    node = TreeViewNode(selectedNodes.GetNext())
   
    // Do something with the nodes here
wend

See Also

TreeView Control