| Description: |
When using a BWidgets Listbox, clicking on an item
selects it, and highlights the text (that's normal).
However, clicking on other items does not remove the
highlights from previous selections. It is quickly
possible to fill the listbox
with apparently selected items. Very confusing.
The problem is located in ListBox::_redraw_selection:
set id [eval [list $path.c create
rectangle] $bbox \
[list -fill $selbg -outline $selbg \
-tags [list [list sel s:$item]]]]
This is one [list] too many. Changing this line to:
set id [eval [list $path.c create
rectangle] $bbox \
[list -fill $selbg -outline $selbg \
-tags [list sel s:$item]]]
solves the problem.
|