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
This commit is contained in:
@@ -249,6 +249,8 @@ bool wxTextCtrl::Create( wxWindow *parent,
|
|||||||
// We create an input handler since it might be useful
|
// We create an input handler since it might be useful
|
||||||
CreateInputHandler(wxINP_HANDLER_TEXTCTRL);
|
CreateInputHandler(wxINP_HANDLER_TEXTCTRL);
|
||||||
|
|
||||||
|
MyAdjustScrollbars();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,7 +273,7 @@ wxString wxTextCtrl::GetValue() const
|
|||||||
|
|
||||||
void wxTextCtrl::SetValue(const wxString& value)
|
void wxTextCtrl::SetValue(const wxString& value)
|
||||||
{
|
{
|
||||||
m_modified = TRUE;
|
m_modified = FALSE;
|
||||||
|
|
||||||
if ((GetWindowStyle() & wxTE_MULTILINE) == 0)
|
if ((GetWindowStyle() & wxTE_MULTILINE) == 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user