]>
git.saurik.com Git - wxWidgets.git/blob - samples/toolbar/test.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxToolBar sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
17 bool InitToolbar(wxToolBar
* toolBar
);
20 class MyTimer
: public wxTimer
23 MyTimer(wxFrame
*frame
) { m_frame
= frame
; }
25 virtual void Notify() { wxLogStatus(m_frame
, "Timer arrived!"); }
32 class MyFrame
: public wxFrame
35 MyFrame(wxFrame
*parent
, wxWindowID id
= -1, const wxString
& title
= "wxToolBar Sample",
36 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
37 long style
= wxDEFAULT_FRAME_STYLE
);
39 void OnCloseWindow(wxCloseEvent
& event
);
40 void OnQuit(wxCommandEvent
& event
);
41 void OnAbout(wxCommandEvent
& event
);
42 void OnToolLeftClick(wxCommandEvent
& event
);
43 void OnToolEnter(wxCommandEvent
& event
);
46 wxTextCtrl
* m_textWindow
;
53 #define ID_TOOLBAR 500