X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0544bc0aab888b4e064de10e451a4fa94ba0f33a..a3c1786def55bcc233f9606acb1aceee956d184f:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 39651183ae..bd43837570 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -491,6 +491,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) ); bmpBtn = NULL; // suppress warning + new wxButton(panel, -1, "Another button", wxPoint(250, 20)); + m_notebook->AddPage(panel, "wxBitmapXXX"); } @@ -776,7 +778,7 @@ void MyPanel::OnShowProgress( wxCommandEvent& WXUNUSED(event) ) max, // range this, // parent wxPD_CAN_ABORT | wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME | wxPD_REMAINING_TIME); - + bool cont = TRUE; for ( int i = 0; i < max && cont; i++ )