Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

tree-control-roots-setter

Generic function

Summary

Sets the roots of the specified tree control.

Signature

tree-control-roots-setter roots tree #key frame-manager => roots

Arguments

roots
An instance of type <sequence>.

tree
An instance of type <tree-control>.

frame-manager
An instance of type <frame-manager>.

Values

roots
An instance of type <sequence>.

Library

duim-gadgets

Module

duim-gadgets

Description

Sets the roots of tree.

Example

Create a tree control without specifying any roots as follows:

*tree* := contain(make(<tree-control>, 
                       children-generator: 
                         method (x) 
                           vector(x, x + 1)
                         end));

You can set the roots of this tree control as follows:

tree-control-roots(*tree*) := #(1, 2, 3);

The tree control is updated on the screen to reflect this change.

See also

<tree-control>, page 679

tree-control-roots, page 688


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index