Exit | |
---|---|
Block | |
+0 | Window handle |
+4 | Visible area minimum x |
+8 | Visible area minimum y |
+12 | Visible area maximum x |
+16 | Visible area maximum y |
+20 | Scroll x offset |
+24 | Scroll y offset |
+28 | Handle to open window behind (-1 top of stack, -2 for bottom of stack) |
+32 | Scroll x direction |
+36 | Scroll y direction |
This code is returned from Wimp_Poll and indicates that a user is requesting to scroll a window.
This event code is only returned if one of the Scroll Requests bits are set in the Window Flag of the window being asked to scroll.
It returns the current scroll offsets and the direction that the window is being asked to scroll.
To actually implement the window scroll, applications must call Wimp_OpenWindow after the new scroll offsets have been calculated.
The scroll offsets are in OS units, so an applications wishing to scroll in pixels must carry out the necessary scaling to calculate the correct values.