wxLayoutConstraints *c;
wxClientDC dc(this);
- dc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
+ dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
long widthText;
dc.GetTextExtent(message, &widthText, NULL, NULL, NULL, NULL);
#endif // MSW/!MSW
c->bottom.SameAs(this, wxBottom, 2*LAYOUT_Y_MARGIN);
- wxSize sizeBtn = wxButton::GetDefaultSize();
- c->width.Absolute(sizeBtn.x);
- c->height.Absolute(sizeBtn.y);
+ c->width.AsIs();
+ c->height.AsIs();
m_btnAbort->SetConstraints(c);
- sizeDlg.y += 2*LAYOUT_Y_MARGIN + sizeBtn.y;
+ sizeDlg.y += 2*LAYOUT_Y_MARGIN + wxButton::GetDefaultSize().y;
}
- else
+ else // no "Cancel" button
+ {
m_btnAbort = (wxButton *)NULL;
+ }
SetAutoLayout(TRUE);
Layout();
// Update the display (especially on X, GTK)
wxYield();
+ wxYield();
#ifdef __WXMAC__
MacUpdateImmediately();
m_msg->SetLabel(newmsg);
wxYield();
+ wxYield();
}
if ( (m_elapsed || m_remaining || m_estimated) && (value != 0) )
m_msg->SetLabel(_("Done."));
}
+ wxYield();
wxYield();
(void)ShowModal();
{
// update the display
wxYield();
+ wxYield();
}
#ifdef __WXMAC__