set-horizontal-scroll-parameters
self
&key
:min-range :max-range :slug-position :slug-size :page-size :step-size
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:
The minimum data coordinate.
The maximum data coordinate.
The current scroll position.
The length of the scroll bar slug.
The scroll page size.
The scroll step size.
See the following CAPI example files:
output-panes/scroll-test.lisp
output-panes/scrolling-without-bar.lisp
The function
set-horizontal-scroll-parameters
supersedes the function
set-scroll-range
, which is deprecated.
(set-horizontal-scroll-parameters pane
:min-range 0
:max-range 42)
(set-scroll-position pane 42 nil)