in reply to perl/tk HLIST selections options
Selecting everything is simple enough:
# select everything $lb->selectionSet(0, 'end' );
But, you only want to do this if no entry is selected.
@selected = $lb->curselection; unless (@selected) { $lb->selectionSet(0, 'end' ); } foreach (@selected) { # do something with the index in $_ }
Untested!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl/tk HLIST selections options
by sandeep.ses (Acolyte) on Jul 09, 2004 at 05:06 UTC | |
by SciDude (Friar) on Jul 09, 2004 at 05:34 UTC |