diff --git a/docs/latex/wx/calctrl.tex b/docs/latex/wx/calctrl.tex index 068282a468..d13b88f1d5 100644 --- a/docs/latex/wx/calctrl.tex +++ b/docs/latex/wx/calctrl.tex @@ -451,3 +451,15 @@ Returns the week day on which the user clicked in {\tt EVT\_CALENDAR\_WEEKDAY\_CLICKED} handler. It doesn't make sense to call this function in other handlers. +\membersection{wxCalendarEvent::SetDate}{wxcalendareventsetdate} + +\func{void}{SetDate}{\param{const wxDateTime\&}{ date}} + +Sets the date. + +\membersection{wxCalendarEvent::SetWeekDay}{wxcalendareventsetweekday} + +\func{void}{SetWeekDay}{\param{wxDateTime::WeekDay}{ day}} + +Sets the week day. + diff --git a/include/wx/calctrl.h b/include/wx/calctrl.h index 285b737065..cb12b7ef04 100644 --- a/include/wx/calctrl.h +++ b/include/wx/calctrl.h @@ -169,6 +169,8 @@ public: wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type); const wxDateTime& GetDate() const { return m_date; } + void SetDate(const wxDateTime &date) { m_date = date; } + void SetWeekDay(const wxDateTime::WeekDay wd) { m_wday = wd; } wxDateTime::WeekDay GetWeekDay() const { return m_wday; } protected: