Add wxTextEntry::AutoCompleteDirectories().

As we already had MSW-specific AutoCompleteFileNames(), we can just as well
also add the also useful AutoCompleteDirectories() to be used with the text
controls used for path entry.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-08-27 14:11:13 +00:00
parent d50fc4dc6d
commit 03dede4dc1
6 changed files with 69 additions and 7 deletions

View File

@@ -112,6 +112,27 @@ public:
*/
bool AutoCompleteFileNames();
/**
Call this function to enable auto-completion of the text using the file
system directories.
Unlike AutoCompleteFileNames() which completes both file names and
directories, this function only completes the directory names.
Notice that currently this function is only implemented in wxMSW port
and does nothing under the other platforms.
@since 2.9.3
@return
@true if the auto-completion was enabled or @false if the operation
failed, typically because auto-completion is not supported by the
current platform.
@see AutoComplete()
*/
bool AutoCompleteDirectories();
/**
Returns @true if the selection can be copied to the clipboard.
*/