From 5d8301397cb1582616ea504f7ab0dee869761c8f Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 8 Apr 2002 21:48:06 +0000 Subject: [PATCH] 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 --- src/x11/textctrl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.50.0