added the test for GtkText inside wxYield crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,6 +36,8 @@
|
|||||||
#include "wx/tooltip.h"
|
#include "wx/tooltip.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/progdlg.h"
|
||||||
|
|
||||||
// We test for wxUSE_DRAG_AND_DROP also, because data objects may not be
|
// We test for wxUSE_DRAG_AND_DROP also, because data objects may not be
|
||||||
// implemented for compilers that can't cope with the OLE parts in
|
// implemented for compilers that can't cope with the OLE parts in
|
||||||
// wxUSE_DRAG_AND_DROP.
|
// wxUSE_DRAG_AND_DROP.
|
||||||
@@ -224,8 +226,14 @@ private:
|
|||||||
if ( freeze )
|
if ( freeze )
|
||||||
text->Freeze();
|
text->Freeze();
|
||||||
|
|
||||||
|
text->Clear();
|
||||||
|
|
||||||
|
wxProgressDialog dlg(_T("Wait..."), _T("Updating"), 100, this);
|
||||||
for ( int i = 0; i < 100; i++ )
|
for ( int i = 0; i < 100; i++ )
|
||||||
|
{
|
||||||
|
dlg.Update(i);
|
||||||
text->AppendText(wxString::Format(wxT("Line %i\n"), i));
|
text->AppendText(wxString::Format(wxT("Line %i\n"), i));
|
||||||
|
}
|
||||||
|
|
||||||
text->SetInsertionPoint(0);
|
text->SetInsertionPoint(0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user