Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added XCCalendarMonthView* param to the XCCalendarDay::SetupControl function
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 16 Jul 2016 21:14:45 +0000 (22:14 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 16 Jul 2016 21:14:45 +0000 (22:14 +0100)
source/widgets/XCCalendarDay.cpp
source/widgets/XCCalendarDay.h
source/widgets/XCCalendarMonthView.cpp

index edc0856..37ce112 100644 (file)
@@ -251,7 +251,7 @@ void XCCalendarDay::DeselectOthersEvent(wxCommandEvent &DeselectEvent)
        
 }
 
-void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth)
+void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth, XCCalendarMonthView *MonthViewPointer)
 {
        
        // Set the day
@@ -266,4 +266,8 @@ void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bo
        
        IsInMonth = SetupIsInMonth;
        
+       // Setup the month view pointer.
+       
+       this->MonthViewPointer = MonthViewPointer;
+       
 }
\ No newline at end of file
index 7f6aca4..e1a884b 100644 (file)
@@ -65,7 +65,7 @@ class XCCalendarDay: public wxPanel
                void ResizeFrameEvent(wxSizeEvent &SizeEvent);
                void DeselectOthersEvent(wxCommandEvent &DeselectEvent);
                void UpdateTopIcons();
-               void SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth);
+               void SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth, XCCalendarMonthView *MonthViewPointer);
        
        DECLARE_EVENT_TABLE()
 };
index 9c23929..9d485ab 100644 (file)
@@ -95,7 +95,7 @@ void XCCalendarMonthView::ProcessGrid(XCCalendarMonthViewGrid *grid){
                                
                        // Setup the control.
                                
-                       CalendarDayItem->SetupControl((*DayIter).Day, (*DayIter).Month, (*DayIter).Year, (*DayIter).IsInMonth);
+                       CalendarDayItem->SetupControl((*DayIter).Day, (*DayIter).Month, (*DayIter).Year, (*DayIter).IsInMonth, this);
                                
                        CalendarDayList.push_back(CalendarDayItem);
                        WindowSizer->Add(CalendarDayItem, 1, wxEXPAND, 5);
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