Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

Easy & ingenious mousewheel scrolling

$
0
0
This demo shows a small, easy, stable and ingenious way to add mousewheel support to most any control such as scrollbars etc.

Note that the included MouseScroll.bas module is not my code and was not written by me. See comments within that file for author credit & module usage notes.

I found this module in one of my old personal code snippet stashes and thought it too good not to re-share and so I made this simple demo.

Advantages:

- No messy & complicated subclassing.

- Controls are easily added and removed from MW support as needed.

- Minimal code.

I am using this on a couple of projects and it works perfectly. Hope that others find it useful as well :).


EDIT: Thanks to Elroy for pointing out that this actually does use subclassing. But it is not very complicated.....
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>