Add some base controls
This commit is contained in:
parent
61cc1fae1f
commit
ef5228e443
@ -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);
|
||||||
|
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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();
|
||||||
|
@ -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()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user