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-on-drag

Arguments: chart-widget

Returns the value of the scroll-on-drag property of a `chart-widget`. The value may be set at creation time by passing the `:scroll-on-drag` initarg, or any time later by calling (setf scroll-on-drag).

scroll-on-drag is a boolean value indicating whether the user can scroll a `chart-widget` along its item-axis by clicking and dragging the chart body. The default value is `t`.

Mouse scrolling is done by clicking down anywhere in the body of the chart and then dragging along the direction of the item-axis. The chart contents will move by an amount equal to the mouse movement distance multiplied by the scroll-on-drag-factor property.

Even when this property is `nil`, a `chart-widget` can still be scrolled with the PageUp, PageDown, and arrow keys. See scroll-line-items and scroll-page-portion.

A chart is never scrollable if its fit-chart-items property is true, because it then squeezes all data into the viewable area.

See `chart-widget` and also cg-chart-widget.htm.

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