Final and global PRIOR/NEXT change: keep consistency using only PAGE versions, deprecate old ids, remove rest of build problems with case statemets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -857,7 +857,7 @@ void wxCalendarCtrl::RecalcGeometry()
|
||||
{
|
||||
// 1.5 times the width gives nice margins even if the weekday
|
||||
// names are short
|
||||
m_widthCol = width+width/2;
|
||||
m_widthCol = width+width/2;
|
||||
}
|
||||
}
|
||||
wxDateTime::WeekDay wd;
|
||||
@@ -1451,7 +1451,7 @@ wxCalendarHitTestResult wxCalendarCtrl::HitTest(const wxPoint& pos,
|
||||
wxDateTime::WeekDay *wd)
|
||||
{
|
||||
RecalcGeometry();
|
||||
// use the correct x-pos
|
||||
// use the correct x-pos
|
||||
wxCoord x0 = wxMax((GetSize().x - m_widthCol*7) /2, 0);
|
||||
wxPoint pos_corr = pos;
|
||||
pos_corr.x -= x0;
|
||||
@@ -1655,13 +1655,13 @@ void wxCalendarCtrl::OnChar(wxKeyEvent& event)
|
||||
}
|
||||
break;
|
||||
|
||||
case WXK_PRIOR:
|
||||
case WXK_PAGEUP:
|
||||
target = m_date - wxDateSpan::Month();
|
||||
ChangeMonth(&target);
|
||||
SetDateAndNotify(target); // always
|
||||
break;
|
||||
|
||||
case WXK_NEXT:
|
||||
case WXK_PAGEDOWN:
|
||||
target = m_date + wxDateSpan::Month();
|
||||
ChangeMonth(&target);
|
||||
SetDateAndNotify(target); // always
|
||||
|
Reference in New Issue
Block a user