TreeView Xojo plugin

TreeView.NodeAction Event

This event is fired when actions are performed on special nodes, such as for example when a Checkbox is clicked on a TreeViewCheckboxNode.

NodeAction(
   node as TreeViewNode,
   nodeIndex as Integer)

Parameters

node
The node which the action is performed on.
nodeIndex
The screen index of the node that the action is performed on.

Remarks

To get information for example on check-state of a TreeViewCheckboxNode state right after the node was checked in the NodeAction event then you will need to typecast the node parameter to the special node type.

Here is a example for special nodes of the type TreeViewCheckboxNode:

Sub NodeAction(node as TreeViewNode,nodeIndex as Integer)
    if node isa TreeViewCheckboxNode then
       if TreeViewCheckboxNode(node).Checked then
          MsgBox node.Text + " was checked"
       else
          MsgBox node.Text + " was unchecked"
       end if
    end if
End Sub

See Also

TreeView Control