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