Add mouse wheel handlign to wxGenericCalendarCtrl

Mimics the scrolling behaviour of native MSW and GTK calendars by allowing to
increment/decrement the month by scrolling anywhere on the generic calendar.

Additionally, use horizontal scrolling to increment/decrement the year.

Closes https://github.com/wxWidgets/wxWidgets/pull/88
This commit is contained in:
Lauri Nurmi
2015-09-06 12:14:36 +03:00
committed by Vadim Zeitlin
parent 4d911fb059
commit 50daf1feab
2 changed files with 24 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ private:
void OnPaint(wxPaintEvent& event);
void OnClick(wxMouseEvent& event);
void OnDClick(wxMouseEvent& event);
void OnWheel(wxMouseEvent& event);
void OnChar(wxKeyEvent& event);
void OnMonthChange(wxCommandEvent& event);