X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/588b8b7037d2b1c736863c43952b4d3a05c6cf2f..c31752dadfe04a196339ee6c592d9971b87539c9:/src/univ/textctrl.cpp diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index e1cedbad12..06eb991243 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -691,6 +691,11 @@ bool wxTextCtrl::Create(wxWindow *parent, // create data object for single line controls m_data.sdata = new wxTextSingleLineData; } + +#if wxUSE_TWO_WINDOWS + if ((style & wxBORDER_MASK) == 0) + style |= wxBORDER_SUNKEN; +#endif if ( !wxControl::Create(parent, id, pos, size, style, validator, name) ) @@ -4112,6 +4117,7 @@ void wxTextCtrl::DoDraw(wxControlRenderer *renderer) // the update region is in window coords and text area is in the client // ones, so it must be shifted before computing intersection wxRegion rgnUpdate = GetUpdateRegion(); + wxRect rectTextArea = GetRealTextArea(); wxPoint pt = GetClientAreaOrigin(); wxRect rectTextAreaAdjusted = rectTextArea;