handle errors returned by wxAnimateCtrl::Play() (part of patch 1586730)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-29 18:03:31 +00:00
parent 21d3d3424b
commit 863d562dfc

View File

@@ -194,8 +194,10 @@ void MyFrame::OnAnimationCtrlPlay(wxCommandEvent& event)
}
else
{
ctrl->Play();
btn->SetLabel(wxT("Stop"));
if (ctrl->Play())
btn->SetLabel(wxT("Stop"));
else
wxLogError(wxT("Cannot play the animation..."));
}
#endif
}