Description: This function collapses (hides) a sub-tree of a module tree diagram.
Returns: Nothing
Usage: Script
Format: CollapseTree(ModuleTree, Module, Mode)
Parameters: ModuleTree { Module Tree } { required } { no default: }
Any numeric expression that returns a module tree value.
Module { Module } { required } { no default: }
Any expression giving the module value that defines the root of a sub-tree.
Mode { numeric } { required } { no default: }
Any numeric expression giving the operation to perform on the sub-tree, as shown in the following table:
|
Mode |
Description |
|
0 |
Collapse tree |
|
1 |
Expand tree |
|
2 |
Toggle collapsed/expanded attribute |
Any other value results in no change to the sub-tree.
Comments: This statement controls the display of a module tree.
This statement may only appear in a script.
Example:
If Button(10, 60, 110, 10, "Collapse", 1);
[
CollapseTree(modTree, mod, 0);
]
See Also: