// event tables
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARY
BEGIN_EVENT_TABLE(wxProgressDialog, wxDialog)
EVT_BUTTON(wxID_CANCEL, wxProgressDialog::OnCancel)
EVT_CLOSE(wxProgressDialog::OnClose)
END_EVENT_TABLE()
IMPLEMENT_CLASS(wxProgressDialog, wxDialog)
-#endif
// ============================================================================
// implementation
{
// set it to the current time
m_timeStart = wxGetCurrentTime();
-
sizeDlg.y += nTimeLabels * (sizeLabel.y + LAYOUT_Y_MARGIN);
}
sizeDlg.y += 2*LAYOUT_Y_MARGIN;
// try to make the dialog not square but rectangular of reasonabel width
- sizeDlg.x = wxMax(widthText, 4*sizeDlg.y/3);
+ sizeDlg.x = (wxCoord)wxMax(widthText, 4*sizeDlg.y/3);
sizeDlg.x *= 3;
sizeDlg.x /= 2;
SetClientSize(sizeDlg);
// Update the display (especially on X, GTK)
wxYield();
+ #ifdef __WXMAC__
+ MacUpdateImmediately() ;
+ #endif
}
wxStaticText *wxProgressDialog::CreateLabel(const wxString& text,
// update the display
wxYield();
}
+ #ifdef __WXMAC__
+ MacUpdateImmediately() ;
+ #endif
return m_state != Canceled;
}