I'd like to have the window scroll the text (users are used to that feature). Using vscroll with a %cw allows the thumb to interact with the displayed window, but not the mouse wheel.
Any chance this can be done? I'm curious!
Welcome to our forums
I'd like to have the window scroll the text (users are used to that feature). Using vscroll with a %cw allows the thumb to interact with the displayed window, but not the mouse wheel.
Any chance this can be done? I'm curious!
Yes this feature can be easily added and this has now been done ready for the next release of ClearWin+.
Thanks, Paul!
Just out of interest, does this apply to all controls with scroll bars (%hx and %vx). I'm aware that %cw and %eb have their own scrolling mechanisms (as FTN95.chm puts it). If so, how do you scroll horizontally with the scroll wheel on a mouse?
Eddie
I have known some programs that let you hold the SHIFT key (or some other key), then use the mouse wheel to horizontally scroll.
My desire was just to have the window scroll vertically since the lines wrap in a %cw used as a console display. Horizontal scrolling for such a window makes no sense.
The message number is defined via WM_MOUSEWHEEL and this is processed by some controls such as %eb, %ht, %gr and now %cw. There may be the potential to add others on request. I guess that %re should also work because it uses a standard Microsoft control.
A nice feature is to use the mouse wheel whilst holding down the control key. This commonly increases/decreases the size of the font and is implemented by some editors such as Plato and Visual Studio and by some browsers.
The mouse wheel can also serve as a middle mouse button and this raises other possibilities.
Left and right movements on a mouse wheel (as opposed to a rotation or a simple click) might be interpreted (with some mouse devices) as a different action. If so then there maybe the potential for an intuitive horizontal scroll.
In theory you can use %mg to add your own functionality but that might not be much fun.
Many thanks for the replies, it was out of interest that I asked, not a real need.
E
It's all good! One never knows when some comment/code segment/code-ask will have a use in your application!
And Happy New Year!
Paul, do you have an anticipated date for the new Clearwin+ release?