X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/549b95b3de1918b84539495310638dd50a249dfe..508d12b2242e0d96c6fb5dc7d9c3ea2aac553603:/samples/console/console.cpp diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 696467232b..2244fb1cee 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -27,6 +27,7 @@ #include "wx/log.h" #include "wx/apptrait.h" #include "wx/platinfo.h" +#include "wx/wxchar.h" // without this pragma, the stupid compiler precompiles #defines below so that // changing them doesn't "take place" later! @@ -2958,6 +2959,7 @@ void TestTimer() virtual void Notify() { wxPrintf(_T("%d"), m_num++); + fflush(stdout); if ( m_num == 10 ) { @@ -2977,6 +2979,11 @@ void TestTimer() wxEventLoop loop; + wxTimer timer1; + timer1.Start(100, true /* one shot */); + timer1.Stop(); + timer1.Start(100, true /* one shot */); + MyTimer timer; timer.Start(500);