git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16900
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Update the display (especially on X, GTK)
wxYield();
// Update the display (especially on X, GTK)
wxYield();
+
+ // FIXME: shouldn't be needed
+#ifdef __WXX11__
#ifdef __WXMAC__
MacUpdateImmediately();
#ifdef __WXMAC__
MacUpdateImmediately();
m_msg->SetLabel(newmsg);
wxYield();
m_msg->SetLabel(newmsg);
wxYield();
+
+ // FIXME: shouldn't be needed
+#ifdef __WXX11__
}
if ( (m_elapsed || m_remaining || m_estimated) && (value != 0) )
}
if ( (m_elapsed || m_remaining || m_estimated) && (value != 0) )
SetTimeLabel(remaining, m_remaining);
}
SetTimeLabel(remaining, m_remaining);
}
- if ( (value == m_maximum ) )
+ if ( value == m_maximum )
{
// so that we return TRUE below and that out [Cancel] handler knew what
// to do
{
// so that we return TRUE below and that out [Cancel] handler knew what
// to do
m_btnAbort->SetLabel(_("Close"));
}
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
m_btnAbort->SetLabel(_("Close"));
}
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
- else // enable the close button to give the user a way to close the dlg
+ else // enable the button to give the user a way to close the dlg
{
EnableCloseButton(TRUE);
}
{
EnableCloseButton(TRUE);
}
+
+ // FIXME: shouldn't be needed
+#ifdef __WXX11__
+ // reenable other windows before hiding this one because otherwise
+ // Windows wouldn't give the focus back to the window which had
+ // been previously focused because it would still be disabled
}
}
else
{
// update the display
wxYield();
}
}
else
{
// update the display
wxYield();
+
+ // FIXME: shouldn't be needed
+#ifdef __WXX11__