All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

set-vertical-scroll-parameters

Function
Summary

Allows programmatic control of the parameters of a vertical scroll bar.

Package

capi

Signature

set-vertical-scroll-parameters self &key min-range max-range slug-position slug-size page-size step-size

Arguments

self

A simple-pane.

min-range , max-range , slug-position , slug-size , page-size , step-size

Reals or nil.

Description

The function set-vertical-scroll-parameters sets the specified parameters of the vertical scroll bar of self , which should be a displayed instance of a subclass of output-pane (such as editor-pane) or layout.

The other arguments are:

min-range

The minimum data coordinate.

max-range

The maximum data coordinate.

slug-position

The current scroll position.

slug-size

The length of the scroll bar slug.

page-size

The scroll page size.

step-size

The scroll step size.

When one of these keyword arguments is not supplied, the value of the corresponding scroll parameter in self is not modified.

See Scroll values and initialization keywords for a description of these scroll parameters.

Compatibility note

The function set-vertical-scroll-parameters supersedes the function set-scroll-range, which is deprecated and no longer exported.

The call

(set-vertical-scroll-parameters pane 
                                :min-range 0
                                :max-range 42)

is equivalent to

(set-scroll-range pane nil 42)
Example
(example-edit-file "capi/output-panes/scrolling-without-bar") (example-edit-file "capi/output-panes/coordinate-origin-fixed") (example-edit-file "capi/output-panes/fixed-origin-scrolling")
See also

get-vertical-scroll-parameters
scroll
set-horizontal-scroll-parameters
simple-pane
Programming with CAPI Windows
output-pane scrolling
Scroll values and initialization keywords


CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017

NextPrevUpTopContentsIndex