Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Horizontal Mouse Wheel support request
Re: Horizontal Mouse Wheel support request [message #60444 is a reply to message #60443] Wed, 24 January 2024 16:03 Go to previous message
Tom1
Messages: 1305
Registered: March 2007
Ultimate Contributor
Hi,

Please find attached the code for GTK in CtrlCore/GtkEvent.cpp. The implementation generally works the same as in Windows, but the granularity is fixed to 120 as it was before. (In Windows we can actually get smaller values too when using two finger gestures on touch pad, making the scrolling proportional to movement. I could not find a way to do that on GTK yet -- partly because I do not have Linux installed on a laptop with touch pad.)

Please note that these implementations use Windows native scrolling directions (i.e. Positive values are received with Up/Forward and Right wheel movement):

https://learn.microsoft.com/en-us/windows/win32/inputdev/wm- mousewheel#parameters
https://learn.microsoft.com/en-us/windows/win32/inputdev/wm- mousehwheel#parameters

I soon found out that horizontal scrolling via 'Shift + MouseWheel' is already supported within some U++ controls, but unfortunately the horizontal direction is reversed having positive going left. I think this should be corrected in those U++ Ctrls that support horizontal scrolling via 'Shift + MouseWheel'.

Best regards,

Tom

EDIT: Did small cleanup for GtkEvent.cpp.
  • Attachment: GtkEvent.cpp
    (Size: 22.68KB, Downloaded 1257 times)

[Updated on: Wed, 24 January 2024 16:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Outdated tools in Windows package
Next Topic: Fastest way to capture control as image
Goto Forum:
  


Current Time: Sat Aug 23 19:37:50 CEST 2025

Total time taken to generate the page: 0.03849 seconds