RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Scroll_Request

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_Poll
» Reason Codes
» Scroll_Request

Scroll_Request

(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 x direction
+36 Scroll y direction

Use

This code is returned from Wimp_Poll and indicates that a user is requesting to scroll a window.

Notes

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.

See also

  • Reason Codes
  • Wimp_OpenWindow
  • Wimp_Poll
  • Window Flags
Revised on June 17, 2009 22:48:11 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Window System Area, Window Flags, Scroll Directions, Wimp_AutoScroll, AutoScroll Status Flags, AutoScroll Entry Flags, AutoScroll Block, Validation String Y, Reason Codes

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys