The Canvas, Listbox and Text widgets support the following scrolling commands.
The Entry widget supports the xview
command and the scan
command
with the y coordinate dropped.
widget scan markx y
Records x and y as widget`s current view anchor.
widget scan dragtox y
Shift the view by 10 times the difference between the coordinates x
and y and the current view anchor coordinates.
widget xview
Return a two element list specifying the fraction of the horizontal span
of the widget at the left and right edges of the window.
widget xview movetofraction
Adjust the view in the window so that fraction of the total width
of the widget is off-screen to the left.
widget xview scrollnumber unitspages
Shift the view by number one-tenths (unit) or nine-tenths (pages)
the window`s width in the horizontal direction.
widget yview
Return a two element list specifying the fraction of the vertical span
of the widget at the top and bottom edges of the window.
widget yview movetofraction
Adjust the view in the window so that fraction of the total height
of the widget is off-screen to the top.
widget yview scrollnumber unitspages
Shift the view by number one-tenths (unit) or nine-tenths (pages)
the window`s height in the vertical direction.
The Text Widget also supports the following:
text yview
[-pickplace] index
Changes view of widget`s window to make character at index visible.
If -pickplace is specified, index will appear at the top of the window.
The Entry (xview
only) and Listbox Widget also supports the following:
listbox xviewindex
Adjusts view so that character position index is at left edge.
listbox yviewindex
Adjusts view so that element at index is at top of window.