Add some base controls
This commit is contained in:
parent
61cc1fae1f
commit
ef5228e443
@ -18,7 +18,7 @@ IMPLEMENT_APP(TyroApp);
|
||||
|
||||
bool TyroApp::OnInit()
|
||||
{
|
||||
TyroFrame* frame = new TyroFrame(0L, _("wxWidgets Application Template"));
|
||||
TyroFrame* frame = new TyroFrame(0L, _("Tyro"));
|
||||
|
||||
frame->Show(true);
|
||||
|
||||
|
@ -11,6 +11,10 @@
|
||||
#define TYROAPP_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
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
Destroy();
|
||||
|
@ -14,7 +14,6 @@
|
||||
#include <wx/wx.h>
|
||||
#endif
|
||||
|
||||
#include <wx/string.h>
|
||||
#include "TyroApp.h"
|
||||
|
||||
class TyroFrame: public wxFrame
|
||||
@ -31,6 +30,7 @@ class TyroFrame: public wxFrame
|
||||
void OnClose(wxCloseEvent& event);
|
||||
void OnQuit(wxCommandEvent& event);
|
||||
void OnAbout(wxCommandEvent& event);
|
||||
wxAuiNotebook* CreateNotebook();
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user