X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d73e6791fc93a590630b6deb918a6518b91ea142..a7910d97a37c967ee47813f9e3af33b1525d1269:/include/wx/textctrl.h diff --git a/include/wx/textctrl.h b/include/wx/textctrl.h index 9ed802bd35..49abd90947 100644 --- a/include/wx/textctrl.h +++ b/include/wx/textctrl.h @@ -82,6 +82,12 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; // doesn't have focus - use this style to force it to always show it #define wxTE_NOHIDESEL 0x2000 +// use wxHSCROLL to not wrap text at all, wxTE_LINEWRAP to wrap it at any +// position and wxTE_WORDWRAP to wrap at words boundary +#define wxTE_DONTWRAP wxHSCROLL +#define wxTE_LINEWRAP 0x4000 +#define wxTE_WORDWRAP 0x0000 // it's just == !wxHSCROLL + // ---------------------------------------------------------------------------- // wxTextAttr: a structure containing the visual attributes of a text // ---------------------------------------------------------------------------- @@ -157,6 +163,8 @@ public: // If the return values from and to are the same, there is no selection. virtual void GetSelection(long* from, long* to) const = 0; + virtual wxString GetStringSelection() const; + // operations // ---------- @@ -337,7 +345,7 @@ class WXDLLEXPORT wxStreamToTextRedirector { public: wxStreamToTextRedirector(wxTextCtrl *text, wxSTD ostream *ostr = NULL) - : m_ostr(ostr ? *ostr : wxSTD::cout) + : m_ostr(ostr ? *ostr : wxSTD cout) { m_sbufOld = m_ostr.rdbuf(); m_ostr.rdbuf(text);