From: Steve Brokenshire <sbrokenshire@xestia.co.uk>
Date: Sun, 26 Jun 2016 12:41:37 +0000 (+0100)
Subject: Added the SetupControl function for the XCCalendarDay class
X-Git-Tag: release-0.02~108
X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=17e07e01f44e01a6da8dfa5f8782ca9962f787c9;p=xestiacalendar%2F.git

Added the SetupControl function for the XCCalendarDay class
---

diff --git a/source/widgets/XCCalendarDay.cpp b/source/widgets/XCCalendarDay.cpp
index 6c0b29b..edc0856 100644
--- a/source/widgets/XCCalendarDay.cpp
+++ b/source/widgets/XCCalendarDay.cpp
@@ -249,4 +249,21 @@ void XCCalendarDay::DeselectOthersEvent(wxCommandEvent &DeselectEvent)
 			
 	}
 	
+}
+
+void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth)
+{
+	
+	// Set the day
+	
+	NumberText->SetLabel(wxString::Format("%02i", SetupDay));
+	
+	// Set the month
+	
+	// Set the year.
+	
+	// Setup the Is In Month value.
+	
+	IsInMonth = SetupIsInMonth;
+	
 }
\ No newline at end of file
diff --git a/source/widgets/XCCalendarDay.h b/source/widgets/XCCalendarDay.h
index 6e46b14..70a6d2f 100644
--- a/source/widgets/XCCalendarDay.h
+++ b/source/widgets/XCCalendarDay.h
@@ -63,6 +63,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);
 	
 	DECLARE_EVENT_TABLE()
 };