From: Steve Brokenshire Date: Mon, 17 Jul 2017 19:25:42 +0000 (+0100) Subject: XCCalendarDayEntry: Refresh panel on selection and deselection. X-Git-Tag: release-0.04~12 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=e09672385792a1594700f03e06d1293e352dcd83;p=xestiacalendar%2F.git XCCalendarDayEntry: Refresh panel on selection and deselection. --- diff --git a/source/widgets/XCCalendarDayEntry.cpp b/source/widgets/XCCalendarDayEntry.cpp index 089110f..491c988 100644 --- a/source/widgets/XCCalendarDayEntry.cpp +++ b/source/widgets/XCCalendarDayEntry.cpp @@ -204,7 +204,8 @@ void XCCalendarDayEntry::LeftClick(wxMouseEvent &mouseEvent){ deselectOthersEvent.SetInt(eventID); deselectOthersEvent.SetId(ID_DESELECTOTHERENTRIES); wxPostEvent(dayPanel, deselectOthersEvent); - + this->Refresh(); + } void XCCalendarDayEntry::RightClick(wxMouseEvent &MouseEvent){ @@ -225,6 +226,7 @@ void XCCalendarDayEntry::RightClick(wxMouseEvent &MouseEvent){ void XCCalendarDayEntry::Deselect(wxCommandEvent &DeselectEvent){ mainPanel->SetBackgroundColour(wxNullColour); + this->Refresh(); }