X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd1c16314e09a49b6afdc15fadf001acc75856bd..f196316400fd247a760b2ef77d5064b4e10e5471:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index ec1a9e0b4f..09dc91bd0d 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -156,6 +156,8 @@ public: // the colours for them otherwise virtual bool SetBackgroundColour(const wxColour& colour); virtual bool SetForegroundColour(const wxColour& colour); +#else + bool IsRich() const { return false; } #endif // wxUSE_RICHEDIT #if wxUSE_INKEDIT && wxUSE_RICHEDIT @@ -168,6 +170,9 @@ public: virtual bool AcceptsFocus() const; + // returns true if the platform should explicitly apply a theme border + virtual bool CanApplyThemeBorder() const; + // callbacks void OnDropFiles(wxDropFilesEvent& event); void OnChar(wxKeyEvent& event); // Process 'enter' if required @@ -207,6 +212,15 @@ protected: // common part of all ctors void Init(); + // creates the control of appropriate class (plain or rich edit) with the + // styles corresponding to m_windowStyle + // + // this is used by ctor/Create() and when we need to recreate the control + // later + bool MSWCreateText(const wxString& value, + const wxPoint& pos, + const wxSize& size); + virtual void DoSetValue(const wxString &value, int flags = 0); // return true if this control has a user-set limit on amount of text (i.e.