wxProgressDialg works again.
Did I do "update" in testconf? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4abcafeaa3
commit
4080c40a71
@ -776,6 +776,7 @@ void MyPanel::OnShowProgress( wxCommandEvent& WXUNUSED(event) )
|
||||
{
|
||||
cont = dialog.Update(i);
|
||||
}
|
||||
wxYield();
|
||||
}
|
||||
|
||||
if ( !cont )
|
||||
|
@ -222,6 +222,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
|
||||
keepGoing = false;
|
||||
}
|
||||
}
|
||||
wxYield();
|
||||
}
|
||||
printout->OnEndDocument();
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
|
||||
height += 35;
|
||||
wxFrame::Create(m_parent, -1, title,
|
||||
wxPoint(0, 0), wxSize(220, height),
|
||||
wxDEFAULT_DIALOG_STYLE);
|
||||
wxDEFAULT_DIALOG_STYLE | style );
|
||||
|
||||
wxLayoutConstraints *c;
|
||||
|
||||
@ -127,8 +127,10 @@ wxProgressDialog::Update(int value, const wxString& newmsg)
|
||||
wxASSERT_MSG( value == -1 || m_gauge, _T("can't update non existent dialog") );
|
||||
wxASSERT_MSG( value < m_maximum, _T("invalid progress value") );
|
||||
|
||||
|
||||
if( m_gauge )
|
||||
m_gauge->SetValue(value + 1);
|
||||
|
||||
if( !newmsg.IsEmpty() )
|
||||
m_msg->SetLabel(newmsg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user