Ticket #15239 (closed enhancement: fixed)
Add a method to obtain the number of columns used for horizontal scrolling with mouse wheel
|Reported by:||toiffel||Owned by:|
|Keywords:||wxMouseEvent horizontal scrolling wheel||Cc:|
Currently there is wxMouseEvent::GetLinesPerAction() that specifies the number of lines to be scrolled vertically per mouse wheel action, but I didn't find a corresponding function for horizontal scrolling.
The attached patch addresses this issue by adding a new wxMouseEvent::GetColumnsPerAction() method. wxMSW port calls SystemParametersInfo() to obtain the necessary information; other ports use the default value of 3. This setting will be useful for scrollable widgets, e.g. wxStyledTextCtrl.