Add some base controls

This commit is contained in:
Timothy Warren 2015-03-31 10:19:34 -04:00
parent 61cc1fae1f
commit ef5228e443
4 changed files with 13 additions and 2 deletions

View File

@ -18,7 +18,7 @@ IMPLEMENT_APP(TyroApp);
bool TyroApp::OnInit() bool TyroApp::OnInit()
{ {
TyroFrame* frame = new TyroFrame(0L, _("wxWidgets Application Template")); TyroFrame* frame = new TyroFrame(0L, _("Tyro"));
frame->Show(true); frame->Show(true);

View File

@ -11,6 +11,10 @@
#define TYROAPP_H #define TYROAPP_H
#include <wx/app.h> #include <wx/app.h>
#include <wx/string.h>
#include <wx/notebook.h>
#include <wx/aui/aui.h>
#include <wx/stc/stc.h>
class TyroApp : public wxApp class TyroApp : public wxApp
{ {

View File

@ -80,6 +80,13 @@ TyroFrame::~TyroFrame()
{ {
} }
wxAuiNotebook *TyroFrame::CreateNotebook()
{
wxAuiNotebook *ctrl = new wxAuiNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_DEFAULT_STYLE);
return ctrl;
}
void TyroFrame::OnClose(wxCloseEvent &event) void TyroFrame::OnClose(wxCloseEvent &event)
{ {
Destroy(); Destroy();

View File

@ -14,7 +14,6 @@
#include <wx/wx.h> #include <wx/wx.h>
#endif #endif
#include <wx/string.h>
#include "TyroApp.h" #include "TyroApp.h"
class TyroFrame: public wxFrame class TyroFrame: public wxFrame
@ -31,6 +30,7 @@ class TyroFrame: public wxFrame
void OnClose(wxCloseEvent& event); void OnClose(wxCloseEvent& event);
void OnQuit(wxCommandEvent& event); void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event); void OnAbout(wxCommandEvent& event);
wxAuiNotebook* CreateNotebook();
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };