height += 35;
wxFrame::Create(m_parent, -1, title,
wxPoint(0, 0), wxSize(220, height),
- wxDEFAULT_DIALOG_STYLE);
+ wxDEFAULT_DIALOG_STYLE | style );
wxLayoutConstraints *c;
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);
- wxYield();
if ( (value == m_maximum - 1) && !(GetWindowStyleFlag() & wxPD_AUTO_HIDE) )
{
}
m_state = Finished;
- while ( m_state != Canceled ) // set from OnClose()
- wxYield();
-
+
// so that we return TRUE below
m_state = Finished;
}