Refer to this prior related question. While the answers there do work, I have further issues when it comes to certain types of controls such as a TDBGrid
. If the TDBGrid
currently has focus, but the mouse is pointed over another control to scroll, the TDBGrid
scrolls anyway, thus resulting in two different controls scrolling at the same time. This happens in every single solution which I've found so far related to scrolling the control underneath the mouse.
How can I prevent this behavior and ensure that only the control under the mouse scrolls, and nothing else?