corrected progress dialog appearance

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-07-04 16:45:14 +00:00
parent 801bb685b0
commit 70f3fad609

View File

@ -166,7 +166,6 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
nTimeLabels++;
m_elapsed = CreateLabel(_("Elapsed time : "), &lastWindow);
SetTimeLabel(0, m_elapsed);
}
if ( style & wxPD_ESTIMATED_TIME )
@ -241,6 +240,14 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
Show(TRUE);
Enable(TRUE); // enable this window
// this one can be initialized even if the others are unknown for now
//
// NB: do it after calling Layout() to keep the labels correctly aligned
if ( m_elapsed )
{
SetTimeLabel(0, m_elapsed);
}
// Update the display (especially on X, GTK)
wxYield();