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:
@@ -194,8 +194,10 @@ void MyFrame::OnAnimationCtrlPlay(wxCommandEvent& event)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ctrl->Play();
|
if (ctrl->Play())
|
||||||
btn->SetLabel(wxT("Stop"));
|
btn->SetLabel(wxT("Stop"));
|
||||||
|
else
|
||||||
|
wxLogError(wxT("Cannot play the animation..."));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user