We are in the process of converting a Swing application to SWT and it’s already usable. What drives me really nuts is that with SWT (in contrast to Swing) on Windows only the focused control (e.g. table, list, multi-line text field) is scrolled, even when the mouse cursor is over another control.
Is there a possibility to change this behavior in our application (not having to install a third-party utility), e.g. by installing some control-independent hook/filter for scroll events which either redirects the event to the control at the current cursor location or by first moving the focus automatically. Thanks in advance.
The original solution has a number of problems.
Below is a ready to copy code snipped that is based on the original answer but handles all these problems.