Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code for application to display XCCalendarMonthView on it's own
[xestiacalendar/.git] / source / tests / xestiacalendar_testxccalendarmonthview.cpp
1 #include <wx/wx.h>
2 #include "../widgets/XCCalendarMonthView.h"
3 #include "../common/monthviewgen.h"
5 class XCCalendarMonthViewTest: public wxApp
6 {
7     virtual bool OnInit();
8 };
10 /*class MyFrame: public wxFrame
11 {
12         private:
13                 XCCalendarDay *XCCalWidget = nullptr;
14                 wxBoxSizer *WindowSizer = new wxBoxSizer(wxVERTICAL);
15         public:
16                 MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
17 };*/
19 IMPLEMENT_APP(XCCalendarMonthViewTest);
21 using namespace std;
23 bool XCCalendarMonthViewTest::OnInit()
24 {
25         
26         XCCalendarMonthViewGrid MonthViewGrid = GenerateMonthGrid(6, 2016);
27         
28         XCCalendarMonthView *frmMain = new XCCalendarMonthView("XCCalendarMonthView Test", wxPoint(50, 50), wxSize(200, 200), &MonthViewGrid);
29         
30         frmMain->Show();
31         SetTopWindow(frmMain);
32         
33         return true;
34         
35 }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy