Sets up vertical and/or horizontal scrollbars. The first pair of arguments give the number of pixels per ``scroll step,'' i.e., the amount moved when the up or down scroll arrows are pressed. If horiz-pixels or vert-pixels is 0 or less, no scrollbars will be shown in the corresponding direction. The second pair of arguments gives the length of scrollbar in scroll steps that effectively set the size of the ``virtual canvas.'' The third pair gives the number of scroll steps in a ``page,'' i.e., the amount moved when pressing above or below the scrollbar control, or using page up or page down.
The x-pos and y-pos arguments specify a position to scroll to immediately. A value of -1 indicates that no automatic scrolling should occur.
For example, the following gives a canvas horizontal and vertical scrollbars with 20 pixels per scroll step, a size of 50 steps (1000 pixels) in each direction, and 4 steps (80 pixels) to a page: (send a-canvas set-scrollbars 20 20 50 50 4 4)
See also enable-scrolling and get-virtual-size.