From 2ac1b69a007171e158d1a870bfaf7ec6efc8b1c4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 27 Jul 1999 04:51:03 +0000 Subject: [PATCH] Added another button to show wxBitmapButton problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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++ ) -- 2.45.2