How to replace the ScrollBar on a List & Combo Box
-
The simplest way to do this is to disable the built-in scrollbar on the list box, and then place your own adjacent to the list box. I'm not sure if even using ownerdraw you could actually replace the built-in scrollbar.
Software Zen:
delete this;
-
The simplest way to do this is to disable the built-in scrollbar on the list box, and then place your own adjacent to the list box. I'm not sure if even using ownerdraw you could actually replace the built-in scrollbar.
Software Zen:
delete this;
-
I've thought that too, but if i do, i'll have to map the mouse and key events by my own, i only want to replace the classic scroolbar by one of my own, withou mapping the events, is there another way?:confused:
Not that I know of (and I looked hard). I ran into this very problem on an application that used a touch screen. It turns out the builtin scrollbar didn't resize in a way that was appropriate for the touch screen, so I ended up building my own. I could have used the so-called 'flat scrollbars' provided by some versions of Internet Explorer, but they're not a good idea (they're no longer supported under IE6+).
Software Zen:
delete this;