src/swipl-devel/packages/xpce/man/refmanual/md/scroll_bar.md

class scroll_bar {#class-scroll_bar}

A scroll_bar object allows the user to examine and modify the position of a view --provided by some window-- onto a larger object. Scrollbars are normally attached to windows, editors and list_browsers. Scrollbars probably are rarely used by normal PCE application programmers. They may be used in combination with class figure using figure ->clip_area to create a mini-window (note that windows may also be displayed on other window objects).

A scroll_bar assumes there is an object of a certain size and a <-view on this object that allows the user to see part of it. This part is defined by a <-start position and a <-length. See ->bubble' A scroll_bar is a normal graphical object. To connect it to some other object, two communications should be established:

@see class slider @see window->scroll_horizontal @see scroll_bar->bubble @see editor-scroll_bar

Class variables {#class-scroll_bar-classvars}

Instance variables {#class-scroll_bar-instvars}

Send methods {#class-scroll_bar-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.