X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea98f11c2fbcd33ffc9b9771b8046c7353f51fcf..e1db4c1290af151b0d85c4dcad7cbb2414e0d474:/interface/wx/textentry.h?ds=sidebyside diff --git a/interface/wx/textentry.h b/interface/wx/textentry.h index 565bbaf597..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 @@ -46,8 +53,8 @@ public: Call this function to enable auto-completion of the text typed in a single-line text control using the given @a choices. - Notice that currently this function is only implemented in wxGTK2 and - wxMSW ports and does nothing under the other platforms. + Notice that currently this function is only implemented in wxGTK2, + wxMSW and wxOSX/Cocoa ports and does nothing under the other platforms. @since 2.9.0 @@ -75,7 +82,7 @@ public: Notice that you need to include @c wx/textcompleter.h in order to define your class inheriting from wxTextCompleter. - Currently this method is only implemented in wxMSW port. + Currently this method is only implemented in wxMSW and wxOSX/Cocoa. @since 2.9.2 @@ -98,7 +105,7 @@ public: Call this function to enable auto-completion of the text typed in a single-line text control using all valid file system paths. - Notice that currently this function is only implemented in wxGTK2 port + Notice that currently this function is only implemented in wxMSW port and does nothing under the other platforms. @since 2.9.0 @@ -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.