combo with auto-complete?

Armel armelasselin at hotmail.com
Thu May 15 09:56:13 PDT 2008



"Vadim Zeitlin" <vadim at wxwidgets.org> a écrit dans le message de news: 
mailman.150.1210799282.27688.wx-users at lists.wxwidgets.org...
> On Wed, 14 May 2008 19:25:10 +0200 Armel <armelasselin at hotmail.com> wrote:
>
> A> i'd like to use a combobox with auto completion in my wx app, exactly 
> like
> A> in IE (have the MRU in the combo, and the proposed items in a list 
> below the
> A> edit text part of the combo when typing, the proposed items may not be 
> those
> A> of the combo, i.e. there may be chosen from a larger [dynamic] list)
> A>
> A> is there something around doing that already?
>
> I started implementing this in svn trunk with wxTextEntry::AutoComplete(),
> I'd welcome any feedback about it.
OK I see the code in MSW and GTK, I'll checkout the trunk here to have a 
look, is there a working test in samples/text(???something??)

One of my own concern (but for which you have probably already given a 
response) is that I need asynchronous auto-completion, i.e., the things in 
the list may come very slowly (tens of seconds or being totally stalled). In 
my understanding, the idea with the interface that you are designing is 
that, when pressing keys I would run a thread of my own to get my data (up 
to there totally disconnected from auto-completion), then when I have my 
data at hand, i call AutoComplete(choices)... if the user did not change the 
text to the point that these choices are surely bad. Nonetheless, I may call 
AutoComplete(choices) many times, even while the auto completion stuff is 
visible, is this OK?

Regards
Armel




More information about the wx-users mailing list