]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datectrl.h
Compilation fix for OS/2.
[wxWidgets.git] / include / wx / datectrl.h
index a6adde5db76801c877c68fccba36dd4f12d2f79f..1cf93fa1d2f8b23824ef476dd0b7faadb2b175e2 100644 (file)
 
 #define wxDatePickerCtrlNameStr _T("datectrl")
 
+// wxDatePickerCtrl styles
+enum
+{
+    // default style on this platform, either wxDP_SPIN or wxDP_DROPDOWN
+    wxDP_DEFAULT = 0,
+
+    // a spin control-like date picker (not supported in generic version)
+    wxDP_SPIN = 1,
+
+    // a combobox-like date picker (not supported in mac version)
+    wxDP_DROPDOWN = 2
+};
+
 // ----------------------------------------------------------------------------
 // wxDatePickerCtrl: allow the user to enter the date
 // ----------------------------------------------------------------------------
@@ -33,7 +46,7 @@ public:
                     const wxDateTime& dt = wxDefaultDateTime,
                     const wxPoint& pos = wxDefaultPosition,
                     const wxSize& size = wxDefaultSize,
-                    long style = 0,
+                    long style = wxDP_DEFAULT,
                     const wxValidator& validator = wxDefaultValidator,
                     const wxString& name = wxDatePickerCtrlNameStr);
      */
@@ -52,7 +65,7 @@ public:
 #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
     #include "wx/msw/datectrl.h"
 #else
-    // TODO: #include "wx/generic/datectrl.h"
+    #include "wx/generic/datectrl.h"
 #endif
 
 #endif // _WX_DATECTRL_H_