X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb72429e84a705de867331397ff7b6cbaeec48a..fd6c94288f31c06d4ad3c7d7ab17ed2e32b16b33:/include/wx/datectrl.h diff --git a/include/wx/datectrl.h b/include/wx/datectrl.h index a6adde5db7..1cf93fa1d2 100644 --- a/include/wx/datectrl.h +++ b/include/wx/datectrl.h @@ -17,6 +17,19 @@ #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_