Package: gtk

Function gtk-scrolled-window-set-policy

Lambda List

gtk-scrolled-window-set-policy (scrolled-window hscrollbar-policy vscrollbar-policy)


scrolled-window -- a gtk-scrolled-window container
hscrollbar-policy -- policy for horizontal bar
vscrollbar-policy -- policy for vertical bar


Sets the scrollbar policy 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 bar would be smaller than the trough - the display is larger than the page size).