Scrollbar
Michael Grunditz (467) 531 posts |
How do I get events from window scrollbar? |
nemo (145) 2546 posts |
Bits 8 and 9 of the window flags? |
Michael Grunditz (467) 531 posts |
I meant, how can I get events , I want to manually scroll my contents with the window scrollbar. How do bit 8 and 9 in window flags help for that? |
Alan Robertson (52) 420 posts |
The window flag bits 8 or 9 determine if the Scroll_Request event is generated at the Wimp_Poll. |
Michael Grunditz (467) 531 posts |
By moving scrollbar I get wimp_OPEN requests. I can see yscroll change but I also get the same info when window moves. I dont get scroll_request from scrollbar , setting scroll_window bit. If I scroll with mouse wheeel or pressing the arrows on the scrollbar I get scroll_events and I can scroll just fine, but the scrollbar doesn’t seem connected to it. |
Michael Grunditz (467) 531 posts |
ok update: I was wrong, windowmoving ,doesn’t change scroll. But the yscroll advances too fast. I would need it to scrolldown one pixel, now it scrolls like 50 units. |
Michael Grunditz (467) 531 posts |
Solved.. was having problems with relative scrolloffsets in app. Solved.. was having problems with relative scrolloffsets in app.EDIT.. Solved.. was having problems with relative scrolloffsets in app.EDIT..Not solved! :) Solved.. was having problems with relative scrolloffsets in app.EDIT..Not solved! :)The scrollbar scrolls down the window itself much faster and longer than I can scroll app. I get a marble textured background when app reaches bottom. |
Michael Grunditz (467) 531 posts |
That was Chrome who did all those EDITS! |
Michael Grunditz (467) 531 posts |
I found the error: I disabled scroll in the window → enabled jump scroll by pressing on scrollbar. Still had yscroll adjustments to redraw/update code. Removed that and everything went fine, except that now scroll wheel doesnt work. |