Ticket URL: <
http://trac.wxwidgets.org/ticket/15266>
#15266: Add support for horizontal mouse wheel scrolling to wxStyledTextCtrl
---------------------------------------------------------------+------------
Reporter: toiffel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: wxStyledText | Version: 2.9-svn
Keywords: wxStyledTextCtrl wxSTC horizontal scrolling wheel | Blockedby:
Patch: 1 | Blocking:
---------------------------------------------------------------+------------
This patch does exactly what the title says - enables the horizontal
scrolling using wxMouseEvent::GetColumnsPerAction() introduced in #15239.
The current implementation doesn't distinguish between vertical and
horizontal axes so the horizontal scrolling behaves as vertical one.
In order to make things work I've added ''axis'' and ''columnsPerAction''
parameters to ScintillaWX::DoMouseWheel(). Note that unlike line-by-line
vertical scrolling, Scintilla allows us to perform smooth horizontal
scrolling on a pixel-by-pixel basis. Also ''wheelRotation'' accumulator is
now splitted up to ''wheelVRotation'' and ''wheelHRotation'' members for
vertical and horizontal axes respectively.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/15266>