X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..f3c0f9e75f16f7b636bdf7cd1b821e41e0f61592:/samples/tab/test.h diff --git a/samples/tab/test.h b/samples/tab/test.h index 2cbdeb60a1..adb13a16fc 100644 --- a/samples/tab/test.h +++ b/samples/tab/test.h @@ -14,8 +14,15 @@ class MyApp: public wxApp { public: bool OnInit(void); + void InitTabView(wxPanelTabView* view, wxWindow* window); + + wxButton* m_okButton; + wxButton* m_cancelButton; + wxButton* m_helpButton; }; +DECLARE_APP(MyApp) + class MyDialog: public wxTabbedDialog { public: @@ -24,6 +31,37 @@ public: void OnOK(wxCommandEvent& event); void OnCloseWindow(wxCloseEvent& event); + void Init(void); + +DECLARE_EVENT_TABLE() +}; + +class MyFrame: public wxFrame +{ +public: + MyFrame(wxFrame* parent, const wxWindowID id, const wxString& title, + const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_FRAME_STYLE); + + void OnOK(wxCommandEvent& event); + void OnCloseWindow(wxCloseEvent& event); + void OnSize(wxSizeEvent& event); + void Init(void); +protected: + wxTabbedPanel* m_panel; + wxPanelTabView* m_view; + +DECLARE_EVENT_TABLE() +}; + + +class MyTabbedPanel: public wxTabbedPanel +{ +public: + MyTabbedPanel(wxWindow* parent, const wxWindowID id, + const wxPoint& pos, const wxSize& size, const long windowStyle = 0); + + void OnOK(wxCommandEvent& event); + void OnCloseWindow(wxCloseEvent& event); // void OnAbout(wxCommandEvent& event); void Init(void);