From: Steve Brokenshire Date: Sun, 17 Jul 2016 14:17:47 +0000 (+0100) Subject: Moved DeselectOthersEvent setup to the XCCalendarDay constructor. X-Git-Tag: release-0.02~95 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c260462332298a28ddb0848aacc98033d854ae78;p=xestiacalendar%2F.git Moved DeselectOthersEvent setup to the XCCalendarDay constructor. --- diff --git a/source/widgets/XCCalendarDay.cpp b/source/widgets/XCCalendarDay.cpp index 37ce112..6a6d442 100644 --- a/source/widgets/XCCalendarDay.cpp +++ b/source/widgets/XCCalendarDay.cpp @@ -23,14 +23,14 @@ using namespace std; BEGIN_EVENT_TABLE(XCCalendarDay, wxPanel) EVT_PAINT(XCCalendarDay::PaintFrameEvent) EVT_SIZE(XCCalendarDay::ResizeFrameEvent) -//EVT_COMMAND(wxID_ANY, XCCALENDARDAY_DESELECTOTHERENTRIES, XCCalendarDay::DeselectOthersEvent) END_EVENT_TABLE() XCCalendarDay::XCCalendarDay(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size) : wxPanel(parent, wxID_ANY, pos, size, wxTAB_TRAVERSAL, title){ Connect(wxID_ANY, XCCALENDARDAY_DESELECTOTHERENTRIES, wxCommandEventHandler(XCCalendarDay::DeselectOthersEvent)); - + Connect(ID_DESELECTALLITEMS, XCCALENDARDAY_DESELECTALLENTRIES, wxCommandEventHandler(XCCalendarDay::DeselectAllEvent)); + this->SetMinSize( wxSize( 100,100 ) ); AlertIconBitmap.LoadFile("AlertIcon-32.png", wxBITMAP_DEFAULT_TYPE);