git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10822
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
nTimeLabels++;
m_elapsed = CreateLabel(_("Elapsed time : "), &lastWindow);
- SetTimeLabel(0, m_elapsed);
}
if ( style & wxPD_ESTIMATED_TIME )
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();