% % create a values grid in new tree % 20 !Grid.Vlen sel@ _\\ _@ % % create the Values tree % "gridarea" "Values" +values & "gallv " log() *treepers rootnode _\ Tree./Below % % stack: node-name task-tree % % float above the task tree being edited % _@ false *panelflt % % stack: node-name % % name of the root node is the task tree's node name % Tree.Rooting % % create a new child for values grid % " - - Values" newchild _\ % % stack: values-node % % instantiate a grid within the values node % true second @!Grid? % % focus on the current node's grid % dup @^Grid % % set the number of columns for the current grid % the first column (0 index) is for row titles % 5 @!Cols % % set the titles for the columns % the first row (0 index) is for column titles % % focus on the 0,1 cell to set the title % 0 1 @^Cell % % get the item index associated with the column titles row (0 index) within the current grid % 0 @_Grow !\ % % set the visibility of the column (row-titles) or row (col-titles) % % stack: values-node row-titles col-titles % false true @^Gtitles % % focus on the column title def for the current grid % the zero is not used % "