TreeView – ExpandItems Function

Expands one or more specified items to reveal its/their children.

  trObj ’Do 'ExpandItems' inx

where inx is an integer scalar or vector, the index numbers of the items to expand. Note that each item is expanded only one level. To expand an entire branch, you must specify the index number of an item together with the indices of all its descendents:

  trObj ’Do 'ExpandItems' inx, trObj ’Do 'GetDescendants' inx

The shy result is always Boolean scalar 1.

See also GetDescendants


Continue to: TreeView – GetAncestors Function
© Copyright Causeway Graphical Systems Ltd 2003