# NOTE: Derived from ../blib/lib/Tk/Listbox.pm.
# Changes made here will be lost when autosplit is run again.
#line 471 "../blib/lib/Tk/Listbox.pm (autosplit into ../blib/lib/auto/Tk/Listbox/SelectAll.al)"
# This procedure is invoked to handle the "select all" operation.
# For single and browse mode, it just selects the active element.
# Otherwise it selects everything in the widget.
# w - The listbox widget.
my $mode = $w->cget('-selectmode');
if ($mode eq 'single' || $mode eq 'browse')
$w->selectionClear(0,'end');
$w->selectionSet('active')
$w->selectionSet(0,'end')
# end of Tk::Listbox::SelectAll