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;
return;
wxImage image(filepath);
- if (! image.Ok() )
+ if (! image.IsOk() )
{
wxLogMessage("Reading image from file '%s' failed.", filepath.c_str());
return;