Package: gtk

Function gtk:scrolled-window-policy

Lambda List

gtk:scrolled-window-policy (window)

Syntax

(gtk:scrolled-window-policy window) => hpolicy, vpolicy
(setf (gtk:scrolled-window-policy window) (list hpolicy vpolicy))

Arguments

window -- a gtk:scrolled-window widget
hpolicy -- a value of the gtk:policy-type enumeration for the policy of the horizontal scrollbar
vpolicy -- a value of the gtk:policy-type enumeration for the policy of the vertical scrollbar

Details

Gets or sets the policy values for the horizontal and vertical scrollbars. The policy determines when the scrollbar should appear. It is a value from the gtk:policy-type enumeration. If :always, the scrollbar is always present. If :never, the scrollbar is never present. If :automatic, the scrollbar is present only if needed, that is, if the slider part of the scrollbar would be smaller than the trough - the display is larger than the page size.
 

See also

2026-09-02