X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e173f35d2a8177371d13d059d9f897e2c4f98be..9fd9e47a93dfcdd99c2722e288a0f28a51ce6f5f:/samples/widgets/button.cpp diff --git a/samples/widgets/button.cpp b/samples/widgets/button.cpp index c5c3dcac65..c04855340c 100644 --- a/samples/widgets/button.cpp +++ b/samples/widgets/button.cpp @@ -36,6 +36,7 @@ #include "wx/textctrl.h" #endif +#include "wx/artprov.h" #include "wx/sizer.h" #include "widgets.h" @@ -220,7 +221,7 @@ ButtonWidgetsPage::ButtonWidgetsPage(wxNotebook *notebook, sizerRight->Add(0, 0, 1, wxCENTRE); sizerRight->Add(m_button, 1, wxCENTRE); sizerRight->Add(0, 0, 1, wxCENTRE); - sizerRight->SetMinSize(250, 0); + sizerRight->SetMinSize(150, 0); m_sizerButton = sizerRight; // save it to modify it later // the 3 panes panes compose the window @@ -321,7 +322,7 @@ void ButtonWidgetsPage::CreateButton() #ifdef __WXUNIVERSAL__ if ( m_chkImage->GetValue() ) { - m_button->SetImageLabel(wxTheApp->GetStdIcon(wxICON_INFORMATION)); + m_button->SetImageLabel(wxArtProvider::GetIcon(wxART_INFORMATION)); } #endif // wxUniv