void XCCalendarDay::Repaint(){
wxPaintDC dc(this);
-
+ wxPaintDC EventListFrameDC(EventListFrame);
+
// Get the wxSizerItem for the top date and the entries part.
wxSizerItem *TopSectionSizerItem = WindowSizer->GetItem((size_t)0);
wxSizerItem *MainSectionSizerItem = WindowSizer->GetItem((size_t)1);
wxRect TopSizer = wxRect(WindowSizer->GetPosition(), WindowSizer->GetSize());
- dc.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
- dc.DrawRectangle(TopSectionSizerItem->GetRect());
- dc.SetBrush(wxBrush(wxColor(225,225,225)));
- dc.DrawRectangle(MainSectionSizerItem->GetRect());
+ if (IsInMonth == true){
- // Draw the border.
+ dc.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
+ dc.SetBrush(wxBrush(wxColor(255,255,255)));
+ dc.DrawRectangle(TopSectionSizerItem->GetRect());
+ dc.SetBrush(wxBrush(wxColor(225,225,225)));
+ dc.DrawRectangle(MainSectionSizerItem->GetRect());
+ EventListFrameDC.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
+ EventListFrameDC.SetBrush(wxBrush(wxColor(225,225,225)));
+ EventListFrameDC.DrawRectangle(EventListFrame->GetClientRect());
+
+ } else {
+
+ dc.SetPen(wxPen(wxColor(185,185,185), 0, wxPENSTYLE_TRANSPARENT));
+ dc.SetBrush(wxBrush(wxColor(185,185,185)));
+ dc.DrawRectangle(TopSectionSizerItem->GetRect());
+ dc.SetBrush(wxBrush(wxColor(155,155,155)));
+ dc.DrawRectangle(MainSectionSizerItem->GetRect());
+ EventListFrameDC.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
+ EventListFrameDC.SetBrush(wxBrush(wxColor(155,155,155)));
+ EventListFrameDC.DrawRectangle(EventListFrame->GetClientRect());
+
+ }
- this->Layout();
+ // Draw the border.
- dc.SetBrush(wxBrush(wxColor(0,0,0), wxBRUSHSTYLE_TRANSPARENT));
-
- wxPaintDC EventListFrameDC(EventListFrame);
- EventListFrameDC.SetPen(wxPen(wxColor(255,255,255), 0, wxPENSTYLE_TRANSPARENT));
- EventListFrameDC.SetBrush(wxBrush(wxColor(225,225,225)));
- EventListFrameDC.DrawRectangle(EventListFrame->GetClientRect());
+ //dc.SetBrush(wxBrush(wxColor(0,0,0), wxBRUSHSTYLE_TRANSPARENT));
+ this->Layout();
+
}
void XCCalendarDay::UpdateTopIcons(){