X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/324eeecb3cdc9522e136af6670443148772b412a..4bc4bae18573d2e8111ed0df0061f32a012f04dd:/include/wx/palmos/datectrl.h?ds=sidebyside diff --git a/include/wx/palmos/datectrl.h b/include/wx/palmos/datectrl.h index e5c1921412..4b4d086135 100644 --- a/include/wx/palmos/datectrl.h +++ b/include/wx/palmos/datectrl.h @@ -20,7 +20,7 @@ class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase { public: // ctors - wxDatePickerCtrl() { } + wxDatePickerCtrl() { Init(); } wxDatePickerCtrl(wxWindow *parent, wxWindowID id, @@ -31,6 +31,7 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxDatePickerCtrlNameStr) { + Init(); Create(parent, id, dt, pos, size, style, validator, name); } @@ -53,10 +54,19 @@ public: virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2); virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const; + // send a notification event, return true if processed + bool SendClickEvent(); + protected: virtual wxSize DoGetBestSize() const; - DECLARE_NO_COPY_CLASS(wxDatePickerCtrl) +private: + wxDateTime m_dt; + + void Init() { m_dt = wxDateTime::Today(); } + + + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl) }; #endif // _WX_PALMOS_DATECTRL_H_