]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datectlg.cpp
Update ReST docs
[wxWidgets.git] / src / generic / datectlg.cpp
index d22073d67e178bcee13029eb1621315f71b80c5c..9c6bd88b3a3b3e60eaa61cea8a139bbd44d2041f 100644 (file)
 // global variables
 // ----------------------------------------------------------------------------
 
-// this should have been a flag in wxDatePickerCtrlGeneric itself but adding it
-// there now would break backwards compatibility, so put it here as a global:
-// this shouldn't be a big problem as only one (GUI) thread normally can call
-// wxDatePickerCtrlGeneric::SetValue() and so it can be only ever used for one
-// control at a time
-//
-// if the value is not NULL, it points to the control which is inside SetValue()
-static wxDatePickerCtrlGeneric *gs_inSetValue = NULL;
 
 // ----------------------------------------------------------------------------
 // local classes
@@ -414,6 +406,10 @@ bool wxDatePickerCtrlGeneric::Create(wxWindow *parent,
 
     m_popup = new wxCalendarComboPopup();
 
+#if defined(__WXMSW__)
+    // without this keyboard navigation in month control doesn't work
+    m_combo->UseAltPopupWindow();
+#endif
     m_combo->SetPopupControl(m_popup);
 
     m_cal = m_popup;