Tree Control: Collapse and Expand Callback as a Function

This example shows how to use a function to allow/deny access to tree nodes.