forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can a %cw utilize the mouse wheel for vertical scrolling?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 467
Location: Morrison, CO, USA

PostPosted: Fri Dec 29, 2017 10:16 pm    Post subject: Can a %cw utilize the mouse wheel for vertical scrolling? Reply with quote

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!
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5501
Location: Salford, UK

PostPosted: Sat Dec 30, 2017 7:58 am    Post subject: Reply with quote

Yes this feature can be easily added and this has now been done ready for the next release of ClearWin+.
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 467
Location: Morrison, CO, USA

PostPosted: Sat Dec 30, 2017 5:53 pm    Post subject: Reply with quote

Thanks, Paul!
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 1844
Location: Yateley, Hants, UK

PostPosted: Sun Dec 31, 2017 10:09 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 467
Location: Morrison, CO, USA

PostPosted: Mon Jan 01, 2018 12:54 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5501
Location: Salford, UK

PostPosted: Mon Jan 01, 2018 10:21 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 1844
Location: Yateley, Hants, UK

PostPosted: Mon Jan 01, 2018 10:44 am    Post subject: Reply with quote

Many thanks for the replies, it was out of interest that I asked, not a real need.

E
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 467
Location: Morrison, CO, USA

PostPosted: Mon Jan 01, 2018 2:55 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 467
Location: Morrison, CO, USA

PostPosted: Thu Jan 04, 2018 10:26 pm    Post subject: Reply with quote

Paul, do you have an anticipated date for the new Clearwin+ release?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group