| Description: |
BWidget 1.3.1 has changed the way ComboBox handles
focus and selection, compared to the latest Unifix release, 1.2.1.
First of all, option -entryfg removed,breaking older code.
Why not -entryfg to be re-inserted as a synonym of -foreground,
so as to maintain backward compatibility?
Also, when the user selects a value from the drop-down list (or
simply closes it without selecting anything), then the focus
is set to the entry widget. This is perhaps ok if the ComboBox
is editable, but when the ComboBox is not editable, there is no point
in it: the user cannot type anything in there and an insertion cursor appears.
This visually unpleasant, having an insertion cursor in an entry you cannot
type.
Also, it cannot be turned off with the various -insert* options, that seem to
not work in order to make the insertion cursor invisible...
Also regarding the selection, ComboBox obviously tries to mimic the combo box
behaviour under windows, so along with the focus, the selection is also set.
Again, under windows when you click outside the combo box, the selection is
removed. This is not happening to the BWidget combo box. In my opinion,
there should be an option to avoid also seting the selection in the changed
value, as there are situations where this behaviour is not wanted.
(but perhaps setting the selection bg/fg to the default entry fg/bg can solve
this problem, although I have not tested it...)
|