Window Scrollbars

General discussion about Visopsys. We'll create more specific forums if the number of posts justifies that.
Post Reply
User avatar
Posts: 58
Joined: Mon Sep 09, 2013 12:16 am
Location: Paraguay

Window Scrollbars

Post by fosforito »

Hello, I'm trying to make the window scollbars better because I personally don't like that the cursor must stay inside the slider to drag the scrollbar. Now, I can drag the bar while the cursor is outside of the window but not if it is inside the window. What changes are needed?
Scrollbar source code - visopsys v0.72
(2.88 KiB) Downloaded 851 times
My Homepage: :)
User avatar
Posts: 572
Joined: Tue Nov 16, 2010 7:20 pm

Re: Window Scrollbars

Post by andymc »

I can give this a look, but just off the top of my head, I'd say that you'd need to make changes in kernelWindow.c and/or kernelWindowComponent.c. I guess the approach would be to treat this as a 'dragging' event, and keep passing mouse events to the scrollbar component as long as the mouse button stays pressed.
Post Reply