X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7001dcd533451aab9c31011c2ce6336737db796..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/textentry.h?ds=sidebyside diff --git a/interface/wx/textentry.h b/interface/wx/textentry.h index 0a5a5e2230..2152b4ba59 100644 --- a/interface/wx/textentry.h +++ b/interface/wx/textentry.h @@ -3,7 +3,6 @@ // Purpose: interface of wxTextEntry // Author: Vadim Zeitlin // Created: 2009-03-01 (extracted from wx/textctrl.h) -// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -180,7 +179,7 @@ public: The insertion point is set to the start of the control (i.e. position 0) by this function. - This functions does not generate the @c wxEVT_COMMAND_TEXT_UPDATED + This functions does not generate the @c wxEVT_TEXT event but otherwise is identical to SetValue(). See @ref overview_events_prog for more information. @@ -196,7 +195,7 @@ public: /** Clears the text in the control. - Note that this function will generate a @c wxEVT_COMMAND_TEXT_UPDATED + Note that this function will generate a @c wxEVT_TEXT event, i.e. its effect is identical to calling @c SetValue(""). */ virtual void Clear(); @@ -206,6 +205,11 @@ public: */ virtual void Copy(); + /** + Copies the selected text to the clipboard and removes it from the control. + */ + virtual void Cut(); + /** Returns the insertion point, or cursor, position. @@ -396,7 +400,7 @@ public: and the user may enter as much text as the underlying native text control widget supports (typically at least 32Kb). If the user tries to enter more characters into the text control when it - already is filled up to the maximal length, a @c wxEVT_COMMAND_TEXT_MAXLEN + already is filled up to the maximal length, a @c wxEVT_TEXT_MAXLEN event is sent to notify the program about it (giving it the possibility to show an explanatory message, for example) and the extra input is discarded. @@ -429,6 +433,13 @@ public: */ virtual void SelectAll(); + /** + Deselects selected text in the control. + + @since 2.9.5 + */ + virtual void SelectNone(); + /** Sets a hint shown in an empty unfocused text control. @@ -456,6 +467,10 @@ public: currently you should avoid calling methods such as WriteText() or Replace() when using hints and the text control is empty. + @remarks Hints can only be used for single line text controls, + native multi-line text controls don't support hints under any + platform and hence wxWidgets doesn't provide them neither. + @since 2.9.0 */ virtual bool SetHint(const wxString& hint); @@ -508,7 +523,7 @@ public: 0) by this function. Note that, unlike most other functions changing the controls values, - this function generates a @c wxEVT_COMMAND_TEXT_UPDATED event. To avoid + this function generates a @c wxEVT_TEXT event. To avoid this you can use ChangeValue() instead. @param value