X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0f01cb25c45ecad510cb092872b48ffc4652de5..9c1fed55d70bbc0e64433426ca94a598d9bdb6c1:/interface/wx/textentry.h diff --git a/interface/wx/textentry.h b/interface/wx/textentry.h index a2c7b7f8b6..d31506f1c0 100644 --- a/interface/wx/textentry.h +++ b/interface/wx/textentry.h @@ -8,6 +8,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// + +/** + wxTextPos is a position in the text +*/ +typedef long wxTextPos; + + /** @class wxTextEntry @@ -112,6 +119,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. */ @@ -421,7 +449,7 @@ public: @since 2.9.0 */ - virtual void SetHint(const wxString& hint); + virtual bool SetHint(const wxString& hint); /** Returns the current hint string.