]>
git.saurik.com Git - wxWidgets.git/blob - samples/animate/anitest.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: anitest sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/animate.h"
14 // Define a new application
15 class MyApp
: public wxApp
22 class MyFrame
: public wxFrame
26 MyFrame(wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
27 const wxPoint
& pos
, const wxSize
& size
, const long style
);
30 void OnAbout(wxCommandEvent
& event
);
31 void OnQuit(wxCommandEvent
& event
);
33 void OnPlay(wxCommandEvent
& event
);
34 void OnStop(wxCommandEvent
& event
);
36 void OnUpdateUI(wxUpdateUIEvent
& event
);
39 void OnOpen(wxCommandEvent
& event
);
40 #endif // wxUSE_FILEDLG
42 wxAnimationCtrl
* GetAnimationCtrl() const { return m_animationCtrl
; }
45 wxAnimationCtrl
* m_animationCtrl
;