From 93dec256522729e3d13e035755f3c5a1e57efb37 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 26 Jun 2016 15:32:19 +0100 Subject: [PATCH] Added code for application to display XCCalendarDay on it's own --- .../xestiacalendar_testxccalendarday.cpp | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/tests/xestiacalendar_testxccalendarday.cpp diff --git a/source/tests/xestiacalendar_testxccalendarday.cpp b/source/tests/xestiacalendar_testxccalendarday.cpp new file mode 100644 index 0000000..8a5b016 --- /dev/null +++ b/source/tests/xestiacalendar_testxccalendarday.cpp @@ -0,0 +1,32 @@ +#include +#include "../widgets/XCCalendarDay.h" + +class XCCalendarDayTest: public wxApp +{ + virtual bool OnInit(); +}; + +/*class MyFrame: public wxFrame +{ + private: + XCCalendarDay *XCCalWidget = nullptr; + wxBoxSizer *WindowSizer = new wxBoxSizer(wxVERTICAL); + public: + MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size); +};*/ + +IMPLEMENT_APP(XCCalendarDayTest); + +using namespace std; + +bool XCCalendarDayTest::OnInit() +{ + + XCCalendarDay *frmMain = new XCCalendarDay(NULL, "XCCalendarDay Test", wxPoint(50, 50), wxSize(200, 200) ); + + frmMain->Show(); + SetTopWindow(frmMain); + + return true; + +} \ No newline at end of file -- 2.39.5