Hello Andrea,
Puh
I could imagine:
(dropdown ist open)
example:
abc
six
two
three
all keystrokes applies only for the first char:
pressing b: not in the list: jumps to "nearest" char (here 'a')
pressing then t: jumps to "two", t again to "tree", t again to "two".
the dropdownlist stays open.
Each Time a EVT_EXT_CHOICE_CONTROL or similar is fired.
maybe optional in addition by pressing enter or leave focus with tab or
mouse:
EVT_EXT_CHOICE_CONTROL_ENTER (if it put out to be useful for someone)
and in any case close the dropdownbox.
the closing of the dropdownbox could aslo apply by pressing mouse again,
or alt-down again.
So I think, this is close to wx.Choice, with the exception, that here
the dropdownlist stays open and two different events are fired.
But plse wait for other opinions from other wxPython-users
路路路
On Tue, 24 May 2005 23:23:16 +0200, andrea_gavana@tin.it wrote:
Hello Franz & NG,
about this comment:
* alt-down cursor key should (could) open the whold dropdown list as in
the Combobox (as it is in Choice).I have seen that wx.Choice and wx.ComboBox behave differently (after having
opened the drop-down list). So, suppose you open the drop-down list (that
applies also with the mouse-click opening). Then, if you want to use only
the keyboard, these are the behaviors:1) wx.Choice: after whatever key press, the drop-down list is destroyed
(but the navigation with keyboard works correctly);
2) wx.ComboBox: the drop-down list remains opened and allows you to use
keys to navigate between choices (but the top textctrl is updated at every
navigation changes, so it receives a wx.EVT_COMBO_WHATEVER event on every
key press). When you have finished to navigate, an ESC key (or a wx.EVT_KILL_FOCUS)
destroys the drop-down list.So, here is my questions:
a) Should I implement one of them and choose between wx.Choice behavior
and wx.ComboBox behavior?b) Should I implement it really close to wx.ComboBox behavior but not sending
events to every navigation (with keyboard), and send the event only when
the navigation is finished (and the user has done his choice)?c) Should I give the user the possibility to specify another "style" input
parameter that allows to switch (not in runtime, but during class construction)
between wx.Choice behavior and wx.Combobox behavior? And, in the wx.ComboBox
case, does the same limitations on (b) will apply?Thank you for every suggestion.
Andrea.
--
Franz Steinh盲usler
http://drpython.sourceforge.net/
http://mitglied.lycos.de/drpython/