Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

increment

Arguments: scroll-bar-mixin

Returns the value of the increment property of its argument. This property is a numeric (fixnum) value relating to the range of the object. For instance, if the range is (0 100) and the increment is 1, then pressing an arrow key will advance the control's slider bar 1/100 of the way across the dialog in that arrow's direction.

increment is a property of the up-down-control, trackbar, horizontal-scroll-bar, and vertical-scroll-bar classes.

Alternate value for up-down-controls

For an up-down-control, alternate values are allowed to determine how the control continues to increment as the user holds down the mouse button after clicking on an arrow. In particular, if the value is an association list of non-negative integers of the form ((elapsed-seconds increment) (elapsed-seconds increment) ...), then the increment will change at various points in time. For example, a value of ((1 1)(1 3)(2 10)(4 100)) indicates that the up-down-control should increment (or decrement) by 1 for the first second, by 3 for the next second, by 10 for the next 2 seconds, and then by 100 thereafter until either the mouse button is released or the maximum or minimum value of the control's range is reached. If the value is instead a single integer, then the control will continue to increment by that single amount. The default value is nil, which means to use the default increment pattern.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version