Scale and scrollbar

Live: the Scale and Scrollbar cards of the gallery.

scale

set vol 40
scale .vol -orient horizontal -from 0 -to 100 -variable vol -tickinterval 25 -length 260
pack .vol -fill x -padx 12 -pady 8
A horizontal scale at 40 with the ticks 0, 25, 50, 75, and 100
Live

scrollbar

entry .e -width 22 -xscrollcommand {.s set}
scrollbar .s -orient horizontal -command {.e xview}
.e insert 0 "A long line of text that is wider than its entry, so the scrollbar under it moves the view."
pack .e .s -fill x -padx 12
An entry with a long line of text and a horizontal scrollbar under it
Live