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
, bool smallicons
= FALSE
);
21 class MyFrame
: public wxFrame
24 MyFrame(wxFrame
*parent
,
26 const wxString
& title
= "wxToolBar Sample",
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxDEFAULT_FRAME_STYLE
);
31 void OnQuit(wxCommandEvent
& event
);
32 void OnAbout(wxCommandEvent
& event
);
34 void OnToggleToolbar(wxCommandEvent
& event
);
35 void OnEnablePrint(wxCommandEvent
& event
) { DoEnablePrint(); }
36 void OnToggleHelp(wxCommandEvent
& event
) { DoToggleHelp(); }
38 void OnToolLeftClick(wxCommandEvent
& event
);
39 void OnToolEnter(wxCommandEvent
& event
);
46 wxTextCtrl
* m_textWindow
;
51 // ----------------------------------------------------------------------------
53 // ----------------------------------------------------------------------------
55 const int ID_TOOLBAR
= 500;
59 IDM_TOOLBAR_TOGGLETOOLBAR
= 200,
60 IDM_TOOLBAR_ENABLEPRINT
,
61 IDM_TOOLBAR_TOGGLEHELP