interface scrollbar : widget {\c{\fbox{scrollbar}}
scrollbar(char* p, char* options = ""); scrollbar(widget* w, char* p, char* options = ""); void orient(char* opts="vertical"); xview(widget* w);\c{// install widget to scroll}
yview(widget* w);\c{// install widget to scroll}
};
The default orientation of a scrollbar is vertical. A scrollbar must be explicitly attached to a widget w by calling the functions for vertical scrollbars and for horizontal scrollbars. To obtain the proper geometrical layout, the scrollbar and the widget it controls must usually be packed in a frame.