From 53aa9c77b0e5709ece33a0f1a8f7fa04d510c399 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 4 Mar 2008 10:04:25 +0000 Subject: [PATCH] test Freeze/Thaw completely, including clearing and setting insertion point git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/text/text.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/samples/text/text.cpp b/samples/text/text.cpp index bf9b9dc253..3908b8e4cd 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -311,20 +311,21 @@ private: void DoAddText(bool freeze) { wxTextCtrl * const text = m_panel->m_textrich; - text->Clear(); if ( freeze ) text->Freeze(); + text->Clear(); + for ( int i = 0; i < 100; i++ ) { text->AppendText(wxString::Format(wxT("Line %i\n"), i)); } + text->SetInsertionPoint(0); + if ( freeze ) text->Thaw(); - - text->SetInsertionPoint(0); } MyPanel *m_panel; -- 2.47.2