class WXDLLIMPEXP_ADV wxCalendarCtrl : public wxControl
{
-friend class wxMonthComboBox;
-friend class wxYearSpinCtrl;
-
public:
// construction
wxCalendarCtrl() { Init(); }
virtual bool Enable(bool enable = true);
virtual bool Show(bool show = true);
+ virtual wxVisualAttributes GetDefaultAttributes() const
+ { return GetClassDefaultAttributes(GetWindowVariant()); }
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
private:
// common part of all ctors
void Init();
void OnChar(wxKeyEvent& event);
void OnMonthChange(wxCommandEvent& event);
void OnYearChange(wxCommandEvent& event);
+ void OnYearTextChange(wxCommandEvent& event);
// override some base class virtuals
virtual wxSize DoGetBestSize() const;
// show the correct controls
void ShowCurrentControls();
+ // create the month combo and year spin controls
+ void CreateMonthComboBox();
+ void CreateYearSpinCtrl();
+
public:
// get the currently shown control for month/year
wxControl *GetMonthControl() const;