entry xview
Reads or changes the horizontal view of a text longer than the entry.
PATHNAME xview
PATHNAME xview INDEX
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 text, from 0 to 1. With INDEX, shows that character at the left side. moveto shows the text from FRACTION. scroll moves the view by N units (characters), N pages (widths of the entry), or N pixels. A scrollbar calls these forms with its -command.
Returns
Two fractions with no argument, else an empty string.
Examples
# An empty entry shows all of its text.
% entry .xv
> .xv xview
0.0 1.0
% entry .xv2
> .xv2 xview moveto 0.5
Errors
% entry .xv3; .xv3 xview bogus
bad entry index "bogus"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1