// 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)
return m_combo->GetBestSize();
}
+wxWindowList wxDatePickerCtrlGeneric::GetCompositeWindowParts() const
+{
+ wxWindowList parts;
+ if (m_combo)
+ parts.push_back(m_combo);
+ if (m_popup)
+ parts.push_back(m_popup);
+ return parts;
+}
+
// ----------------------------------------------------------------------------
// wxDatePickerCtrlGeneric API
// ----------------------------------------------------------------------------