git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52306
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void DoAddText(bool freeze)
{
wxTextCtrl * const text = m_panel->m_textrich;
void DoAddText(bool freeze)
{
wxTextCtrl * const text = m_panel->m_textrich;
if ( freeze )
text->Freeze();
if ( freeze )
text->Freeze();
for ( int i = 0; i < 100; i++ )
{
text->AppendText(wxString::Format(wxT("Line %i\n"), i));
}
for ( int i = 0; i < 100; i++ )
{
text->AppendText(wxString::Format(wxT("Line %i\n"), i));
}
+ text->SetInsertionPoint(0);
+
if ( freeze )
text->Thaw();
if ( freeze )
text->Thaw();
-
- text->SetInsertionPoint(0);