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

Wimp_AutoScroll

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_AutoScroll

Wimp_AutoScroll

(SWI &400FD)
Entry
R0 AutoScroll Entry Flags or 0 to cancel autoscrolling
R1 Pointer to AutoScroll Block
Ignored if R0 = 0 – disable AutoScroll
Used for entry if R0 bits 0 or 1 set and bit 7 clear – enable AutoScroll.
Filled at exit if R0 bit 7 is set – read AutoScroll status.
Exit
R0 AutoScroll Status Flags

Use

The purpose of this call is to control how the Wimp automatically scrolls an application’s windows.

Typical use is to handle the window scrolling whilst dragging in a window either as part of the drag and drop protocol or when dragging one end of a selection.

In the latter case after a drag button Mouse_Click event you start a drag with Wimp_DragBox, call Wimp_AutoScroll R0=3 R1=AutoScrollBlock and when you get a User_Drag_Box event after the mouse button is released you call Wimp_AutoScroll R0=0 to switch off autoscrolling.

If bit 7 (Read Status) is set on entry other entry flags are ignored. If the Status Flags returned in R0 have bits 0 or 1 set (AutoScroll has been enabled) the AutoScrollBlock in R1 is filled with the values used when AutoScroll was enabled.

Notes

This call is application specific, and not system wide.

The window handle in the block passed in R1 when enabling AutoScroll must be owned by the calling task.

Only 1 window can use autoscroll at a time so when you are finished with it you should cancel it.

See also

  • AutoScroll Block
  • AutoScroll Entry Flags
  • AutoScroll Status Flags
  • Scroll_Requests
Revised on April 3, 2011 14:24:53 by Colin (478)? (188.223.24.24)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager SWI Calls, Scroll Directions, AutoScroll Status Flags, AutoScroll Entry Flags, AutoScroll Block

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