I am trying to use wxProgressDialog, with wxWidgets 3.0.4, and MSVC 2012 & mingw-gcc . Here are 2 lines of code I'm using,
Code: Select all
wxProgressDialog progress( APP_TITLE, _("Reading Records. Please Wait..."), m_MaxFTU, this, wxPD_APP_MODAL|wxPD_AUTO_HIDE|wxPD_SMOOTH ); // code updating 'i' & reading from file progress.Update( i+1, wxString::Format( _("Reading Records. Please Wait...\nRecords Read - %d of %d"), i+1, m_MaxFTU ) );
But with gcc, no such flicker is seen, OTOH code runs considerably slower & I can see each step of progress, although exact same source is being compiled for both gcc & MSVC.
So how to avoid the flicker ?