The Scrollbar Widget
Create a scrollbar with the Scrollbar method:
$parentwidget->Scrollbar (options)The standard configuration options that apply to Scrollbar are: -ac-tivebackground, -background, -bg, -borderwidth, -bd, -cursor, -highlightback-ground, -highlightcolor, -highlightthickness, -relief, -takefocus, and -width.
Other options are:
-activerelief =>typeChanges how active elements (
arrow1,arrow2, andslider) in the scrollbar are drawn. Values fortypeareflat,groove,raised,ridge, andsunken. The default israised.-command =>callbackPointer to a function that will be called when the scrollbar is clicked on.
-elementborderwidth =>amountThe width of the borders of the
arrow1,arrow2, andsliderelements.-jump =>booleanDetermines whether the scrollbar will jump scroll. Default is
0(jump scroll disabled).-orient =>orientationDetermines the orientation of the scrollbar. Possible
orientations arehorizontalandvertical(default).-repeatdelay =>millisecondsDetermines the number of milliseconds to hold down an arrow before it will auto-repeat. Default is
300.-repeatinterval =>millisecondsDetermines the number of milliseconds between auto-repeats once it is started. Default is
100.-troughcolor =>colorChanges the color of the trough.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access