Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## scroll

Arguments: window offset &key delay-redraw

Scrolls window by offset which must be a position object (see make-position) indicating the amount to scroll by in the x and y directions. Redrawing is delayed if the delay-redraw keyword argument is true. Returns the actual amount of scrolling achieved as a position, or `nil` if no scrolling was done. See also scroll-to.

This function is called automatically by user-scroll when the user clicks on the scrollbar of a regular window or a `lisp-widget-window` (but not for an `os-widget-window`, which handles its scrolling internally).

Keystrokes do not automatically scroll windows by default. Keyboard scrolling can be set up by writing a virtual-key-down method that calls this function, or more simply by using the handle-scrolling-keys property.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version