X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d4c704c3efa76c3066563580fb521fe4cdb1892..8a31648287be0ef976f133de2786b137f1e98340:/src/generic/datectlg.cpp?ds=sidebyside diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 5d4e6b0614..7ee0b66c88 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -34,10 +34,12 @@ #include "wx/valtext.h" #endif +#include "wx/calctrl.h" +#include "wx/combo.h" + #include "wx/datectrl.h" #include "wx/generic/datectrl.h" - // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -207,11 +209,15 @@ private: // functions honours wxDP_SHOWCENTURY flag. wxString GetLocaleDateFormat() const { +#if wxUSE_INTL wxString fmt = wxLocale::GetInfo(wxLOCALE_SHORT_DATE_FMT); if ( HasDPFlag(wxDP_SHOWCENTURY) ) fmt.Replace("%y", "%Y"); return fmt; +#else // !wxUSE_INTL + return wxT("x"); +#endif // wxUSE_INTL/!wxUSE_INTL } bool SetFormat(const wxString& fmt) @@ -376,6 +382,14 @@ wxSize wxDatePickerCtrlGeneric::DoGetBestSize() const return m_combo->GetBestSize(); } +wxWindowList wxDatePickerCtrlGeneric::GetCompositeWindowParts() const +{ + wxWindowList parts; + parts.push_back(m_combo); + parts.push_back(m_popup); + return parts; +} + // ---------------------------------------------------------------------------- // wxDatePickerCtrlGeneric API // ----------------------------------------------------------------------------