X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0cc899914c55916cf09a033a7b2865717caffc7..f7f8a13c0466725ffffc0cbe9f10da729c3423dd:/src/generic/calctrlg.cpp diff --git a/src/generic/calctrlg.cpp b/src/generic/calctrlg.cpp index c19710b5b8..40a549fbf4 100644 --- a/src/generic/calctrlg.cpp +++ b/src/generic/calctrlg.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 29.12.99 -// RCS-ID: $Id$ // Copyright: (c) 1999 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -274,7 +273,7 @@ void wxGenericCalendarCtrl::CreateMonthComboBox() wxDefaultCoord, wxSIZE_AUTO_WIDTH|wxSIZE_AUTO_HEIGHT); - m_comboMonth->Connect(m_comboMonth->GetId(), wxEVT_COMMAND_COMBOBOX_SELECTED, + m_comboMonth->Connect(m_comboMonth->GetId(), wxEVT_COMBOBOX, wxCommandEventHandler(wxGenericCalendarCtrl::OnMonthChange), NULL, this); } @@ -288,11 +287,11 @@ void wxGenericCalendarCtrl::CreateYearSpinCtrl() wxSP_ARROW_KEYS | wxCLIP_SIBLINGS, -4300, 10000, GetDate().GetYear()); - m_spinYear->Connect(m_spinYear->GetId(), wxEVT_COMMAND_TEXT_UPDATED, + m_spinYear->Connect(m_spinYear->GetId(), wxEVT_TEXT, wxCommandEventHandler(wxGenericCalendarCtrl::OnYearTextChange), NULL, this); - m_spinYear->Connect(m_spinYear->GetId(), wxEVT_COMMAND_SPINCTRL_UPDATED, + m_spinYear->Connect(m_spinYear->GetId(), wxEVT_SPINCTRL, wxSpinEventHandler(wxGenericCalendarCtrl::OnYearChange), NULL, this); } @@ -1002,13 +1001,13 @@ void wxGenericCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) colBg = attr->GetBackgroundColour(); } - if ( colFg.Ok() ) + if ( colFg.IsOk() ) { dc.SetTextForeground(colFg); changedColours = true; } - if ( colBg.Ok() ) + if ( colBg.IsOk() ) { dc.SetTextBackground(colBg); changedColours = true;