I'm trying to write a simple text editor like DarkRoom with just a RichTextBox (or alternatively a TextBox) in it. My problem is that I can't use the mouse wheel for scrolling unless I have a vertical scrollbar. Is there any way to hide this scrollbar and still be able to scroll with the mouse wheel?
So far I have several ideas how this could be done, but no idea how to implement them.
- re-create the scrolling code using a MouseWheel event
- change the visual style of the scrollbar to hide it or make it less visible
- write my own TextBox widget
- overlap the scrollbars with something else to hide them
P.S.: Using any win32 stuff is not an option.