X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49d37022125686b42877f0a5a971e13fb1381e87..f99af6c05204b93eca9b0f21bc803f98e1a9c6bb:/interface/calctrl.h diff --git a/interface/calctrl.h b/interface/calctrl.h index d0b92a1fb0..397b4760ef 100644 --- a/interface/calctrl.h +++ b/interface/calctrl.h @@ -221,32 +221,34 @@ enum wxCalendarHitTestResult @c EVT_CALENDAR_PAGE_CHANGED event handler. @beginStyleTable - @style{wxCAL_SUNDAY_FIRST}: - Show Sunday as the first day in the week (only generic) - @style{wxCAL_MONDAY_FIRST}: - Show Monday as the first day in the week (only generic) - @style{wxCAL_SHOW_HOLIDAYS}: + @style{wxCAL_SUNDAY_FIRST} + Show Sunday as the first day in the week (not in wxGTK) + @style{wxCAL_MONDAY_FIRST} + Show Monday as the first day in the week (not in wxGTK) + @style{wxCAL_SHOW_HOLIDAYS} Highlight holidays in the calendar (only generic) - @style{wxCAL_NO_YEAR_CHANGE}: + @style{wxCAL_NO_YEAR_CHANGE} Disable the year changing (deprecated, only generic) - @style{wxCAL_NO_MONTH_CHANGE}: + @style{wxCAL_NO_MONTH_CHANGE} Disable the month (and, implicitly, the year) changing - @style{wxCAL_SHOW_SURROUNDING_WEEKS}: + @style{wxCAL_SHOW_SURROUNDING_WEEKS} Show the neighbouring weeks in the previous and next months - (only generic) - @style{wxCAL_SEQUENTIAL_MONTH_SELECTION}: + (only generic, always on for the native controls) + @style{wxCAL_SEQUENTIAL_MONTH_SELECTION} Use alternative, more compact, style for the month and year selection controls. (only generic) + @style{wxCAL_SHOW_WEEK_NUMBERS} + Show week numbers on the left side of the calendar. (not in generic) @endStyleTable @beginEventTable{wxCalendarEvent} - @event{EVT_CALENDAR(id, func)}: + @event{EVT_CALENDAR(id, func)} A day was double clicked in the calendar. - @event{EVT_CALENDAR_SEL_CHANGED(id, func)}: + @event{EVT_CALENDAR_SEL_CHANGED(id, func)} The selected date changed. - @event{EVT_CALENDAR_PAGE_CHANGED(id, func)}: + @event{EVT_CALENDAR_PAGE_CHANGED(id, func)} The selected month (and/or year) changed. - @event{EVT_CALENDAR_WEEKDAY_CLICKED(id, func)}: + @event{EVT_CALENDAR_WEEKDAY_CLICKED(id, func)} User clicked on the week day header (only generic). @endEventTable @@ -257,7 +259,7 @@ enum wxCalendarHitTestResult @category{ctrl} - @nativeimpl{wxgtk} + @nativeimpl{wxgtk,wxmsw} @see @ref page_samples_calendar, wxCalendarDateAttr, wxCalendarEvent, wxDatePickerCtrl @@ -400,7 +402,9 @@ public: /** Returns one of wxCalendarHitTestResult constants and fills either @a date or @a wd pointer with the corresponding value depending on the - hit test code. Only in generic wxCalendarCtrl. + hit test code. + + Not implemented in wxGTK currently. */ wxCalendarHitTestResult HitTest(const wxPoint& pos, wxDateTime* date = NULL, @@ -421,6 +425,8 @@ public: /** Sets the current date. + + The @a date parameter must be valid. */ void SetDate(const wxDateTime& date);