X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03dede4dc15796ab5e3e49ef597ebbc461227bca..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/include/wx/textentry.h?ds=inline diff --git a/include/wx/textentry.h b/include/wx/textentry.h index 2ede40d714..fc315b632f 100644 --- a/include/wx/textentry.h +++ b/include/wx/textentry.h @@ -98,6 +98,8 @@ public: virtual void SetSelection(long from, long to) = 0; virtual void SelectAll() { SetSelection(-1, -1); } + virtual void SelectNone() + { const long pos = GetInsertionPoint(); SetSelection(pos, pos); } virtual void GetSelection(long *from, long *to) const = 0; bool HasSelection() const; virtual wxString GetStringSelection() const;