wxComboBox: incremental search!

Hi friends!

Let suppose I have a wxComboBox with list of items to choise from. I want ability to input chars and while I input it, the choice list is 'shrinked' to fit my selection. For example I have a wxComboBox with a list of countries, if I enter in a box an 'A' char, than the choise list shall show only the countries which names starting with 'A'. If I enter an 'AUSTRAL' string, there be only on item in choice list.
And I want some kind of autocompletion while enter a string, some kind of incremental search with autocomplition, like in OpenOffice when you enter a some string it suggest some appropriate string that fit into already entered string. I think I saw the same feature in a some PyGTK application.

That is possible? If 'True', please, provide some code snippets.

Thanks in advance!

Basil Shubin wrote:

Hi friends!

Let suppose I have a wxComboBox with list of items to choise from. I
want ability to input chars and while I input it, the choice list is
'shrinked' to fit my selection. For example I have a wxComboBox with a
list of countries, if I enter in a box an 'A' char, than the choise list
shall show only the countries which names starting with 'A'. If I enter
an 'AUSTRAL' string, there be only on item in choice list.
And I want some kind of autocompletion while enter a string, some kind
of incremental search with autocomplition, like in OpenOffice when you
enter a some string it suggest some appropriate string that fit into
already entered string. I think I saw the same feature in a some PyGTK
application.

That is possible? If 'True', please, provide some code snippets.

Thanks in advance!

Hi,

That has already be done.
Take a look at,

http://wiki.wxpython.org/index.cgi/TextCtrlAutoComplete

ยทยทยท

--
Franz Steinhaeusler