Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Moved DeselectOthersEvent setup to the XCCalendarDay constructor.
[xestiacalendar/.git] / source / widgets / XCCalendarDay.cpp
index 6c0b29b..6a6d442 100644 (file)
@@ -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);
@@ -249,4 +249,25 @@ void XCCalendarDay::DeselectOthersEvent(wxCommandEvent &DeselectEvent)
                        
        }
        
+}
+
+void XCCalendarDay::SetupControl(int SetupDay, int SetupMonth, int SetupYear, bool SetupIsInMonth, XCCalendarMonthView *MonthViewPointer)
+{
+       
+       // Set the day
+       
+       NumberText->SetLabel(wxString::Format("%02i", SetupDay));
+       
+       // Set the month
+       
+       // Set the year.
+       
+       // Setup the Is In Month value.
+       
+       IsInMonth = SetupIsInMonth;
+       
+       // Setup the month view pointer.
+       
+       this->MonthViewPointer = MonthViewPointer;
+       
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy