Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
XCCalendarDay changed from wxFrame to wxPanel
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 26 Jun 2016 12:24:56 +0000 (13:24 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 26 Jun 2016 12:24:56 +0000 (13:24 +0100)
source/widgets/XCCalendarDay.cpp
source/widgets/XCCalendarDay.h

index 6ff7175..2b5eabb 100644 (file)
 
 using namespace std;
 
-BEGIN_EVENT_TABLE(XCCalendarDay, wxFrame)
+BEGIN_EVENT_TABLE(XCCalendarDay, wxPanel)
 EVT_PAINT(XCCalendarDay::PaintFrameEvent)
 EVT_SIZE(XCCalendarDay::ResizeFrameEvent)
 //EVT_COMMAND(wxID_ANY, XCCALENDARDAY_DESELECTOTHERENTRIES, XCCalendarDay::DeselectOthersEvent)
 END_EVENT_TABLE()
 
-XCCalendarDay::XCCalendarDay(const wxString& title, const wxPoint& pos, const wxSize& size)
-        : wxFrame(NULL, wxID_ANY, title, pos, size)
-{
-
+XCCalendarDay::XCCalendarDay(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size)
+        : wxPanel(parent, wxID_ANY, pos, size, wxTAB_TRAVERSAL, title){
+       
        Connect(wxID_ANY, XCCALENDARDAY_DESELECTOTHERENTRIES, wxCommandEventHandler(XCCalendarDay::DeselectOthersEvent));
        
        this->SetMinSize( wxSize( 100,100 ) );
index 0a409ce..d70594a 100644 (file)
@@ -26,7 +26,7 @@
 #include "XCCalendarDayEntry.h"
 #include "../common/events.h"
 
-class XCCalendarDay: public wxFrame
+class XCCalendarDay: public wxPanel
 {
        private:
                wxFlexGridSizer *WindowSizer = new wxFlexGridSizer(2, 1, 0, 0);
@@ -56,7 +56,7 @@ class XCCalendarDay: public wxFrame
                void Repaint();
        
        public:
-               XCCalendarDay(const wxString& title, const wxPoint& pos, const wxSize& size);
+               XCCalendarDay(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
                ~XCCalendarDay();
                void PaintFrameEvent(wxPaintEvent &PaintEvent);
                void ResizeFrameEvent(wxSizeEvent &SizeEvent);
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