wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type);
const wxDateTime& GetDate() const;
+ void SetDate(const wxDateTime &date);
+ void SetWeekDay(const wxDateTime::WeekDay wd);
wxDateTime::WeekDay GetWeekDay() const;
};
//---------------------------------------------------------------------------
-%{
- DECLARE_DEF_STRING(CalendarNameStr);
-%}
+MAKE_CONST_WXSTRING(CalendarNameStr);
// should be used instead for them
// corresponds to wxCAL_NO_YEAR_CHANGE bit
- void EnableYearChange(bool enable = TRUE);
+ void EnableYearChange(bool enable = True);
// corresponds to wxCAL_NO_MONTH_CHANGE bit
- void EnableMonthChange(bool enable = TRUE);
+ void EnableMonthChange(bool enable = True);
// corresponds to wxCAL_SHOW_HOLIDAYS bit
- void EnableHolidayDisplay(bool display = TRUE);
+ void EnableHolidayDisplay(bool display = True);
// customization
// -------------
wxDateTime::WeekDay *wd = NULL);
- bool Enable(bool enable = TRUE);
- bool Show(bool show = TRUE);
+ bool Enable(bool enable = True);
+ bool Show(bool show = True);
+ // get the currently shown control for month/year
+ wxControl *GetMonthControl() const;
+ wxControl *GetYearControl() const;
};