SetTimeLabel(0, m_elapsed);
}
- // Update the display (especially on X, GTK)
- wxYield();
-
-#ifdef __WXMAC__
Update();
-#endif
}
wxStaticText *wxProgressDialog::CreateLabel(const wxString& text,
{
m_msg->SetLabel(newmsg);
- wxYield();
+ wxYieldIfNeeded() ;
}
if ( (m_elapsed || m_remaining || m_estimated) && (value != 0) )
m_msg->SetLabel(_("Done."));
}
- wxYield();
+ wxYieldIfNeeded() ;
(void)ShowModal();
}
}
else
{
- // update the display
- wxYield();
+ // we have to yield because not only we want to update the display but
+ // also to process the clicks on the cancel button
+ wxYieldIfNeeded() ;
}
-#ifdef __WXMAC__
+ // update the display in case yielding above didn't do it
Update();
-#endif
return m_state != Canceled;
}