Have the calendar control handle events from it's combo and spin controls

using Connect().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-05-24 21:50:06 +00:00
parent 6c75a4cf0f
commit 61581d48be
2 changed files with 62 additions and 91 deletions

View File

@@ -31,9 +31,6 @@ class WXDLLEXPORT wxSpinCtrl;
class WXDLLIMPEXP_ADV wxCalendarCtrl : public wxControl
{
friend class wxMonthComboBox;
friend class wxYearSpinCtrl;
public:
// construction
wxCalendarCtrl() { Init(); }
@@ -179,6 +176,7 @@ private:
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;
@@ -248,6 +246,10 @@ private:
// 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;