
10. Perl/Tk Widgets 67
$tlist->xview(index);
Adjusts the view in the window so that the list entry iden-
tified by index is aligned to the left edge of the window.
$tlist->xviewMoveto(float);
Adjusts the view in the window so that float of the total
width of the TList is off-screen to the left. float must be
between 0 and 1.
$tlist->xviewScroll(integer, what);
Shifts the view in the window left or right according to
integer and what. what must be either
units or pages.
$tlist->yview;
Returns a list containing two elements. Each element is a
real fraction between 0 and 1; together they describe the
vertical span that is visible in the window.
$tlist->yview(index);
Adjusts the view in the window so that the list entry given
by index is displayed at the top of the window.
$tlist->yviewMoveto(float);
Adjusts the view in the window so that the list entry given
by float appears at the top of the window. float must be
between 0 and 1.
$tlist->yviewScroll(integer, what);
Shifts the view in the window up or down according to
integer and what. what must be either
units or pages.
Tree
A Tree widget is derived from the HList class and inherits all
its commands, options, and subwidgets. Tree displays hier-
achical data in a tree form, adjustable by opening or closing
parts of the tree.
-background -relief
-borderwidth -selectbackground
-cursor -selectborderwidth
-exportselection -selectforeground
-font -setgrid