Add support for dynamic auto-completion in wxTextEntry.

Add wxTextCompleter class which allows to return the possible completions
dynamically and wxTextCompleter::AutoComplete() overload using it. So far this
is only implemented for wxMSW.

Also fix calling wxTextEntry::AutoComplete(wxArrayString) multiple times under
MSW, this didn't correctly update the list of shown completions before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-04-16 17:27:16 +00:00
parent 6b30ffedb1
commit ea98f11c2f
15 changed files with 613 additions and 65 deletions

View File

@@ -6741,6 +6741,10 @@ SOURCE=..\..\include\wx\tbarbase.h
# End Source File
# Begin Source File
SOURCE=..\..\include\wx\textcompleter.h
# End Source File
# Begin Source File
SOURCE=..\..\include\wx\textctrl.h
# End Source File
# Begin Source File

View File

@@ -5643,6 +5643,9 @@
RelativePath="..\..\include\wx\tbarbase.h">
</File>
<File
RelativePath="..\..\include\wx\textcompleter.h">
</File>
<File
RelativePath="..\..\include\wx\textctrl.h">
</File>
<File

View File

@@ -7544,6 +7544,10 @@
>
</File>
<File
RelativePath="..\..\include\wx\textcompleter.h"
>
</File>
<File
RelativePath="..\..\include\wx\textctrl.h"
>
</File>

View File

@@ -7540,6 +7540,10 @@
>
</File>
<File
RelativePath="..\..\include\wx\textcompleter.h"
>
</File>
<File
RelativePath="..\..\include\wx\textctrl.h"
>
</File>