#15266: Add support for horizontal mouse wheel scrolling to wxStyledTextCtrl

12 views
Skip to first unread message

wxTrac

unread,
Jun 19, 2013, 11:15:33 AM6/19/13
to wx-...@googlegroups.com
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>

wxTrac

unread,
Jun 29, 2013, 8:53:00 AM6/29/13
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/15266#comment:1>

#15266: Add support for horizontal mouse wheel scrolling to wxStyledTextCtrl
---------------------------+------------------------------------------------
Reporter: toiffel | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: wxStyledText | Version: 2.9-svn
Resolution: fixed | Keywords: wxStyledTextCtrl wxSTC horizontal scrolling wheel
Blockedby: | Patch: 1
Blocking: |
---------------------------+------------------------------------------------
Changes (by VZ):

* status: new => closed
* resolution: => fixed


Comment:

(In [74312]) Add support for horizontal mouse wheel scrolling in wxSTC.

Handle horizontal mouse wheel scrolling events in a similar (but simpler,
as
they always scroll and never change the font size) way to the vertical
ones in
wxStyledTextCtrl.

Closes #15266.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/15266#comment:1>
Reply all
Reply to author
Forward
0 new messages