From ff8ebfaf5dcd39801f772f521ff6983b2f98c3a0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 20 Apr 2002 23:30:23 +0000 Subject: [PATCH] compilation sample in !WXWIN_COMPATIBILITY_2_2 mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/button.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/widgets/button.cpp b/samples/widgets/button.cpp index 29e80d1b92..c04855340c 100644 --- a/samples/widgets/button.cpp +++ b/samples/widgets/button.cpp @@ -36,10 +36,11 @@ #include "wx/textctrl.h" #endif +#include "wx/artprov.h" #include "wx/sizer.h" #include "widgets.h" -#if 1 + #include "icons/button.xpm" // ---------------------------------------------------------------------------- @@ -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 @@ -370,4 +371,3 @@ void ButtonWidgetsPage::OnButton(wxCommandEvent& event) wxLogMessage(_T("Test button clicked.")); } -#endif \ No newline at end of file -- 2.47.2