set-vertical-scroll-parameters
self
&key
min-range
max-range
slug-position
slug-size
page-size
step-size
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 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.
The function
set-vertical-scroll-parameters
supersedes the function
set-scroll-range
, which is deprecated and no longer exported.
(set-vertical-scroll-parameters pane
:min-range 0
:max-range 42)
(set-scroll-range pane nil 42)
See the following CAPI example files:
examples/capi/output-panes/scroll-test.lisp
examples/capi/output-panes/scrolling-without-bar.lisp