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

## scrollbars

Arguments: standard-object

Returns the value of the scrollbars property of the argument.

This property is unrelated to the scrollbar controls (`horizontal-scroll-bar` and `vertical-scroll-bar`) but instead refers to system-provided scrollbars for certain windows and controls. The value can be one of:

- `nil`: no scrollbars
- `:horizontal`: horizontal scrollbar only
- `:vertical`: vertical scrollbar only
- `t`, scrollbars in both directions

For windows other than controls, the page-height and page-width properties control the range of the scrollbars; for controls, the range is determined by the control's contents (except for the `drawable` control, which has explicit page-width and page-height properties like a window).

A `combo-box` cannot have a horizontal scrollbar, and so `:vertical` and `nil` are the only choices that appear in the inspector for this property, though t will still work to enable the vertical scrollbar.

A `single-item-list` or `multi-item-list` may have a horizontal scrollbar, but it will only appear if the multi-column-p property is true; this is a limitation in Windows. If a horizontal scrollbar is needed on an item-list that does not use multiple columns, an `outline` control could be used instead, using only top-level items in the range and turning off the draw-icons property to simulate an item-list.

This function is not setf'able. The scrollbars of a window or dialog-item must be established with the :scrollbars initarg when it is created, or using the inspector when designing a window or widget on a form.

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