X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c3c31d4a544271ae70be958f050f70bab440597..74b31181b345aaaef0c967cc5707bef72ce0a405:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index ed3755f463..55d24885bb 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -23,7 +23,9 @@ #include "wx/wx.h" #endif +#if !defined( __WXMSW__ ) || defined( __WIN95__ ) #include "wx/spinbutt.h" +#endif #include "wx/notebook.h" #include "wx/imaglist.h" @@ -384,7 +386,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) button->SetToolTip( "Press here to set italic font" ); #endif // wxUSE_TOOLTIPS - m_checkbox = new wxCheckBox( panel, ID_LISTBOX_ENABLE, "&Disable", wxPoint(20,130), wxSize(-1, -1), wxALIGN_RIGHT ); + m_checkbox = new wxCheckBox( panel, ID_LISTBOX_ENABLE, "&Disable", wxPoint(20,130) ); m_checkbox->SetValue(FALSE); #if wxUSE_TOOLTIPS m_checkbox->SetToolTip( "Click here to disable the listbox" ); @@ -475,12 +477,15 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) m_notebook->AddPage(panel, "wxGauge", FALSE, Image_Gauge); panel = new wxPanel(m_notebook); + +#ifndef __WXMOTIF__ // wxStaticBitmap not working under Motif yet. MB wxIcon icon = wxTheApp->GetStdIcon(wxICON_INFORMATION); wxStaticBitmap *bmpStatic = new wxStaticBitmap(panel, -1, icon, wxPoint(10, 10)); bmpStatic = new wxStaticBitmap(panel, -1, wxNullIcon, wxPoint(50, 10)); bmpStatic->SetIcon(wxTheApp->GetStdIcon(wxICON_QUESTION)); - +#endif + wxBitmap bitmap( 100, 100 ); wxMemoryDC dc; dc.SelectObject( bitmap ); @@ -518,9 +523,9 @@ void MyPanel::OnPageChanging( wxNotebookEvent &event ) int selOld = event.GetOldSelection(); if ( selOld == 2 ) { - if ( wxMessageBox("This demonstrates how a program may prevent the " - "page change from taking place - if you select " - "[No] the current page will stay the third one", + if ( wxMessageBox("This demonstrates how a program may prevent the\n" + "page change from taking place - if you select\n" + "[No] the current page will stay the third one\n", "Control sample", wxICON_QUESTION | wxYES_NO) != wxYES ) {