text xview
Reads or changes the horizontal view of the text.
PATHNAME xview
PATHNAME xview moveto FRACTION
PATHNAME xview scroll N WHAT
Description
With no argument, gives two fractions: the first and the last visible part of the width of the longest line, from 0 to 1. moveto shows the lines from FRACTION. scroll moves the view by N units (average characters), N pages, or N pixels. A long line needs -wrap none for a horizontal scroll.
Returns
Two fractions with no argument, else an empty string.
Examples
% text .xv
> .xv xview
0.0 1.0
Errors
% text .xv2; .xv2 xview bogus
bad option "bogus": must be moveto or scroll
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1