#include "wx/dcclient.h"
#include "wx/timer.h"
#include "wx/settings.h"
+ #include "wx/app.h"
#endif
#include "wx/progdlg.h"
m_msg->SetLabel(_("Done."));
}
- wxYieldIfNeeded();
+ wxTheApp->YieldFor(wxEVT_CATEGORY_UI);
(void)ShowModal();
}
{
// we have to yield because not only we want to update the display but
// also to process the clicks on the cancel and skip buttons
- wxYieldIfNeeded();
+ wxTheApp->YieldFor(wxEVT_CATEGORY_UI|wxEVT_CATEGORY_USER_INPUT);
Update();
if ( HasFlag(wxPD_APP_MODAL) )
{
delete m_winDisabler;
- m_winDisabler = (wxWindowDisabler *)NULL;
+ m_winDisabler = NULL;
}
else
{
Fit(); // adapt to the new label size
- wxYieldIfNeeded() ;
+ wxTheApp->YieldFor(wxEVT_CATEGORY_UI);
}
}