From 17e07e01f44e01a6da8dfa5f8782ca9962f787c9 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 26 Jun 2016 13:41:37 +0100 Subject: [PATCH] Added the SetupControl function for the XCCalendarDay class --- source/widgets/XCCalendarDay.cpp | 17 +++++++++++++++++ source/widgets/XCCalendarDay.h | 1 + 2 files changed, 18 insertions(+) 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() }; -- 2.39.2