]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datectrl.h
removed multiple duplicate copies (with subtly different behaviour) of SetStringSelec...
[wxWidgets.git] / include / wx / datectrl.h
index 76a6ffb332006c2cbf3776a80af6be3ebbc227d0..5a0e6f0e4d6b0be89fbdfc4de2bac90f0ceb8c33 100644 (file)
@@ -35,7 +35,11 @@ enum
 
     // always show century in the default date display (otherwise it depends on
     // the system date format which may include the century or not)
-    wxDP_SHOWCENTURY = 4
+    wxDP_SHOWCENTURY = 4,
+
+    // allow not having any valid date in the control (by default it always has
+    // some date, today initially if no valid date specified in ctor)
+    wxDP_ALLOWNONE = 8
 };
 
 // ----------------------------------------------------------------------------
@@ -87,8 +91,9 @@ public:
                          const wxPoint& pos = wxDefaultPosition,
                          const wxSize& size = wxDefaultSize,
                          long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
+                         const wxValidator& validator = wxDefaultValidator,
                          const wxString& name = wxDatePickerCtrlNameStr)
-            : wxDatePickerCtrlGeneric(parent, id, date, pos, size, style, name)
+            : wxDatePickerCtrlGeneric(parent, id, date, pos, size, style, validator, name)
         {
         }