Next Prev Up Top Contents Index

set-horizontal-scroll-parameters

Function
Summary

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

Syntax

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

Description

Sets the parameters of the horizontal scroll bar of self , which should be an instance of a subclass of simple-pane . 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.

Example

See the following CAPI example files:

output-panes/scroll-test.lisp
output-panes/scrolling-without-bar.lisp
Compatibility Note

The function set-horizontal-scroll-parameters supersedes the function set-scroll-range , which is deprecated.

The call

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

is equivalent to

(set-scroll-position pane 42 nil)
See also

scroll
set-vertical-scroll-parameters
simple-pane


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index