Window Scrollbars

General discussion about Visopsys.
Post Reply
fosforito

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?
Attachments
scrollbar.tar.gz
Scrollbar source code - visopsys v0.72
(2.88 KiB) Downloaded 1131 times
User avatar
andymc
Posts: 589
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