From: Robert Roebling Date: Mon, 8 Apr 2002 21:48:06 +0000 (+0000) Subject: wxTextCtrl::SetValue() sets m_modified to FALSE. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5d8301397cb1582616ea504f7ab0dee869761c8f wxTextCtrl::SetValue() sets m_modified to FALSE. Make scrollbars take MSW's "empty" look on start-up. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/x11/textctrl.cpp b/src/x11/textctrl.cpp index 95cd5e86af..50329f67fe 100644 --- a/src/x11/textctrl.cpp +++ b/src/x11/textctrl.cpp @@ -249,6 +249,8 @@ bool wxTextCtrl::Create( wxWindow *parent, // We create an input handler since it might be useful CreateInputHandler(wxINP_HANDLER_TEXTCTRL); + MyAdjustScrollbars(); + return TRUE; } @@ -271,7 +273,7 @@ wxString wxTextCtrl::GetValue() const void wxTextCtrl::SetValue(const wxString& value) { - m_modified = TRUE; + m_modified = FALSE; if ((GetWindowStyle() & wxTE_MULTILINE) == 0) {