The scrollbar widget

In Brief

This isn't a new widget per se, so much as a convenient automatic alias to the Tk scrollbar (on Mac) or Ttk/Tile scrollbar (elsewhere).

At the time of writing, Tile's 'Aqua' scrollbar presents a distinctly non-native 'Default' theme version. The Tk scrollbar is far and away more platform native.

Commands

::tclmacbag::scrollbar pathName ?Options?

Available options:

See the Tile/Ttk scrollbar and the Tk scrollbar documentation. These widgets share the same commands and options for navigation and control.

You should compare the Tk and Tile versions to ensure that options you use are supported by both.

Example

grid [text .sf -yscrollcommand {.vs set}] -row 1 -column 1 -sticky nsew
grid [::tclmacbag::scrollbar .vs -orient vertical -command {.sf yview}] -row 1 -column 2 -sticky nse