h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » [[Wimp_Poll|Wimp_Poll]] h6(((. » [[Reason Codes|Reason Codes]] h6((((. » Scroll_Request h2. Scroll_Request h5. (Reason Code 10) |_<. 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 Directions|Scroll x direction]] | |>^. +36|[[Scroll Directions|Scroll y direction]] | |>^. +40|Destination icon handle (or -1 for window work area); only present for extended scroll requests | h4. Use This code is returned from [[Wimp_Poll|Wimp_Poll]] and indicates that a user is requesting to scroll a window. It contains the current scroll offsets and the direction that the window is being asked to scroll. h4. Notes This event code is used for both "Normal" scroll requests and "Extended" scroll requests. Applications can determine which type of scroll request they've received by examining the Scroll x direction & Scroll y direction fields. If the bottom two bits of both fields are zero, it is an extended scroll request. Otherwise, it is a normal scroll request. "Normal" scroll requests are only sent to windows if one of the Scroll Requests bits are set in the [[Window Flags|Window Flag]] of the window being asked to scroll. "Extended" scroll requests can either be directed towards the window work area or an icon. Window work areas will only receive the event if they advertise support for extended scroll requests via bit 1 of the [[Extra Window Flags]]. Icons will only receive the event if they advertise support for via the 'YS' [[Validation String Y|validation string flag]]. To actually implement the window scroll, applications must call [[Wimp_OpenWindow|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. h4. See also * [[Reason Codes|Reason Codes]] * [[Wimp_OpenWindow|Wimp_OpenWindow]] * [[Wimp_Poll|Wimp_Poll]] * [[Window Flags|Window Flags]]