X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..fe947a6116844e23acf8458512f452904a4f08f9:/contrib/src/xrc/xh_cald.cpp diff --git a/contrib/src/xrc/xh_cald.cpp b/contrib/src/xrc/xh_cald.cpp index 861928fb96..29ab1b9b94 100644 --- a/contrib/src/xrc/xh_cald.cpp +++ b/contrib/src/xrc/xh_cald.cpp @@ -19,10 +19,15 @@ #pragma hdrstop #endif +#include "wx/setup.h" + +#if wxUSE_CALENDARCTRL + #include "wx/xrc/xh_cald.h" #include "wx/event.h" #include "wx/calctrl.h" +IMPLEMENT_DYNAMIC_CLASS(wxCalendarCtrlXmlHandler, wxXmlResourceHandler) wxCalendarCtrlXmlHandler::wxCalendarCtrlXmlHandler() : wxXmlResourceHandler() @@ -32,6 +37,9 @@ wxCalendarCtrlXmlHandler::wxCalendarCtrlXmlHandler() XRC_ADD_STYLE(wxCAL_SHOW_HOLIDAYS); XRC_ADD_STYLE(wxCAL_NO_YEAR_CHANGE); XRC_ADD_STYLE(wxCAL_NO_MONTH_CHANGE); + XRC_ADD_STYLE(wxCAL_SEQUENTIAL_MONTH_SELECTION); + XRC_ADD_STYLE(wxCAL_SHOW_SURROUNDING_WEEKS); + AddWindowStyles(); } @@ -57,3 +65,5 @@ bool wxCalendarCtrlXmlHandler::CanHandle(wxXmlNode *node) { return IsOfClass(node, wxT("wxCalendarCtrl")); } + +#endif