Generic 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-to

Arguments: window position &key delay-redraw

Scrolls window to position and updates the position of the slider in the scrollbar. Returns the new scroll position. Redrawing is delayed if the keyword argument delay-redraw argument is true. position must be a position (see make-position).

An application may override the default method of this and several other generic functions in order to implement a custom scrolling scheme that scrolls by logical picture objects rather than by pixels. See the source code of the example entitled 'Scrolling by arbitrary objects rather than pixels' on the Examples tab of the Navigator dialog for a complete example. More on this point and a list of the relevant generic functions can be found on the `horizontal-scroll-bar` and `vertical-scroll-bar` pages.

See also scroll-window-to-middle which scrolls a window so equal amounts are scrolled off the left and right and the top and bottom.

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