I am using a Combobox and I realized a strange behaviour.
When I press the first key of a string in the choices,
the control autocompletes, but only when I refresh the
windows (either programmatically or when the window is resized).
When I don't use a sizer for the ComboBoxes, I do not have
this phenomenon.
When the input autocompletes this way, I do not receive a EVT_TEXT
or a EVT_COMBOBOX event (normally these events are generated
when the input is autocompleted for example by pressing
key-down)
I am using wx-2.8.10.1, python-2.6.4, windows vista sp2
It looks to me like this may be some built-in feature/bug of the native widget. wx isn't doing anything that I can see for auto-completion.
···
On 12/14/11 12:09 PM, ErwinP wrote:
Hello,
I am using a Combobox and I realized a strange behaviour.
When I press the first key of a string in the choices,
the control autocompletes, but only when I refresh the
windows (either programmatically or when the window is resized).
When I don't use a sizer for the ComboBoxes, I do not have
this phenomenon.
When the input autocompletes this way, I do not receive a EVT_TEXT
or a EVT_COMBOBOX event (normally these events are generated
when the input is autocompleted for example by pressing
key-down)
I am using wx-2.8.10.1, python-2.6.4, windows vista sp2
What is your goal? do you need it to auto complete?
···
On Dec 14, 10:09 pm, ErwinP <hombr...@gmx.at> wrote:
Hello,
I am using a Combobox and I realized a strange behaviour.
When I press the first key of a string in the choices,
the control autocompletes, but only when I refresh the
windows (either programmatically or when the window is resized).
When I don't use a sizer for the ComboBoxes, I do not have
this phenomenon.
When the input autocompletes this way, I do not receive a EVT_TEXT
or a EVT_COMBOBOX event (normally these events are generated
when the input is autocompleted for example by pressing
key-down)
I am using wx-2.8.10.1, python-2.6.4, windows vista sp2
Hello, I’m sorry for waking the dead guy, but having the same issue
The problem is not only in autocomplete, but when for example “one” is selected, you can’t use backspace correctly, it autocompletes to “one” if text in input field is a prefix to any of possible selections.
Any sugestions on how to avoid this?? Because I need to programmically update combobox after user changes it, but this feature/bug messes everything up
–JJ
···
On Saturday, December 17, 2011 10:18:26 AM UTC+2, Michael Gorelik wrote:
What is your goal? do you need it to auto complete?
On Dec 14, 10:09 pm, ErwinP hombr...@gmx.at wrote:
Hello,
I am using a Combobox and I realized a strange behaviour.
When I press the first key of a string in the choices,
the control autocompletes, but only when I refresh the
windows (either programmatically or when the window is resized).
When I don’t use a sizer for the ComboBoxes, I do not have
this phenomenon.
When the input autocompletes this way, I do not receive a EVT_TEXT
or a EVT_COMBOBOX event (normally these events are generated
when the input is autocompleted for example by pressing
key-down)
I am using wx-2.8.10.1, python-2.6.4, windows vista sp2
I’ve located the problem, if wnd.Layout() is replaced with wnd.Refresh() this tends to happen really really rare, but sometimes weird things do happen.