1. warning in wxDataObject fixed

2. wxProgressDialog got a new style flag and updated docs


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-05-27 13:22:37 +00:00
parent 6453876e12
commit be9abe3fd0
5 changed files with 48 additions and 13 deletions

View File

@@ -1108,14 +1108,18 @@ void MyPanel::OnShowProgress( wxCommandEvent& WXUNUSED(event) )
"An informative message",
max, // range
this, // parent
FALSE, // modal
TRUE); // has abort button
wxPD_CAN_ABORT | wxPD_APP_MODAL);
bool cont = TRUE;
for ( int i = 0; i < max && cont; i++ )
{
wxSleep(1);
if ( i == max / 2 )
if ( i == max - 1 )
{
cont = dialog.Update(i, "That's all, folks!");
}
else if ( i == max / 2 )
{
cont = dialog.Update(i, "Only a half left!");
}