X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..cd15bcaf50ead53ccf9d50965312f0dc754affb4:/samples/widgets/statbmp.cpp?ds=sidebyside diff --git a/samples/widgets/statbmp.cpp b/samples/widgets/statbmp.cpp index 69c67bfe89..12ec4704b8 100644 --- a/samples/widgets/statbmp.cpp +++ b/samples/widgets/statbmp.cpp @@ -6,7 +6,7 @@ // Created: 2008-06-19 // Id: $Id$ // Copyright: (c) 2008 Marcin Wojdyr -// License: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -104,9 +104,9 @@ void StatBmpWidgetsPage::CreateContent() wxInitAllImageHandlers(); - Connect(wxEVT_COMMAND_FILEPICKER_CHANGED, + Connect(wxEVT_FILEPICKER_CHANGED, wxFileDirPickerEventHandler(StatBmpWidgetsPage::OnFileChange)); - Connect(wxEVT_COMMAND_RADIOBOX_SELECTED, + Connect(wxEVT_RADIOBOX, wxCommandEventHandler(StatBmpWidgetsPage::OnRadioChange)); m_statbmp = NULL; @@ -122,7 +122,7 @@ void StatBmpWidgetsPage::RecreateWidget() return; wxImage image(filepath); - if (! image.Ok() ) + if (! image.IsOk() ) { wxLogMessage("Reading image from file '%s' failed.", filepath.c_str()); return;