
20 Perl/Tk Pocket Reference
$listbox->insert(index ?, element ... ?);
Inserts specified elements just before element at index.
$listbox->nearest(y);
Returns index of element nearest to y-coordinate.
$listbox->scan(args);
See Widget Scroll Commands above.
$listbox->selectionAnchor(index);
Sets the selection anchor to element at index.
$listbox->selectionClear(first ?, last ?);
Deselects elements between first and last inclusive.
$listbox->selectionIncludes(index);
Returns 1 if element at index is selected, 0 otherwise.
$listbox->selectionSet(first ?,last ?);
Adds all elements between first and last inclusive to
selection.
$listbox->see(index);
Adjusts the view in window so element at index is com-
pletely visible.
$listbox->size
Returns number of elements in listbox.
$listbox->xview| yview(args);
See Widget Scroll Commands above.
7. The Menu Widget
Menu Widget Options
-activebackground -cursor
-activeborderwidth -disabledforeground
-activeforeground -font
-background -foreground
-borderwidth -relief