]>
git.saurik.com Git - wxWidgets.git/blob - samples/tab/tab.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
17 void InitTabView(wxPanelTabView
* view
, wxWindow
* window
);
20 wxButton
* m_cancelButton
;
21 wxButton
* m_helpButton
;
26 class MyDialog
: public wxTabbedDialog
29 MyDialog(wxWindow
* parent
, const wxWindowID id
, const wxString
& title
,
30 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= wxDEFAULT_DIALOG_STYLE
);
32 void OnOK(wxCommandEvent
& event
);
33 void OnCloseWindow(wxCloseEvent
& event
);
39 class MyFrame
: public wxFrame
42 MyFrame(wxFrame
* parent
, const wxWindowID id
, const wxString
& title
,
43 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= wxDEFAULT_FRAME_STYLE
);
45 void OnOK(wxCommandEvent
& event
);
46 void OnCloseWindow(wxCloseEvent
& event
);
47 void OnSize(wxSizeEvent
& event
);
50 wxTabbedPanel
* m_panel
;
51 wxPanelTabView
* m_view
;
57 class MyTabbedPanel
: public wxTabbedPanel
60 MyTabbedPanel(wxWindow
* parent
, const wxWindowID id
,
61 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= 0);
63 void OnOK(wxCommandEvent
& event
);
64 void OnCloseWindow(wxCloseEvent
& event
);
65 // void OnAbout(wxCommandEvent& event);
75 #define TEST_TAB_DOG 1
76 #define TEST_TAB_CAT 2
77 #define TEST_TAB_GOAT 3
78 #define TEST_TAB_GUINEAPIG 4
79 #define TEST_TAB_ANTEATER 5
80 #define TEST_TAB_HUMMINGBIRD 6
81 #define TEST_TAB_SHEEP 7
82 #define TEST_TAB_COW 8
83 #define TEST_TAB_HORSE 9
84 #define TEST_TAB_PIG 10
85 #define TEST_TAB_OSTRICH 11
86 #define TEST_TAB_AARDVARK 12