[wx-dev] RE: support for filenames auto completion
Armel Asselin
asselin.armel at wanadoo.fr
Mon Jul 31 12:02:24 PDT 2006
> R> > And I have no idea on the Mac side.
> R>
> R> Well, in my ideal world wx would use the native combobox, which
> R> can turn on autocompletion with a flag
>
> This is not enough for my ideal world. First of all, such combobox
> wouldn't allow even completing the filenames which is very useful. Second,
> ideally I'd like to be able to complete from any user-defined set of
> strings. So I start to think that maybe adding wxTE/CB_FILENAME styles
> were
> a bad idea as they are too specific. Adding wxComboBox/wxTextCtrl::
> EnableCompletion(wxCompletionSource *) method would probably be better as
> it could be extended (later) to do everything I want, unlike the flag.
I'd be really interested in this kind of wxCompletionSource (which I imagine
would return a set of strings given a prefix string).
Just some idea: this kind of completion stuff is generally 'asynchronous'
(i.e. if it takes more than say, half a second, the combo should not wait,
but rather let the user type and later fill when the strings are there). It
may be coded inside the wxCompletionSource completely as long as it could
notify that the list is actually there. From the wxComboBox point of view,
just having to handle some notification would no be too much to had i
suppose.
Armel
More information about the wx-dev
mailing list