ttk::entry xview
Gives or moves the visible part of a text longer than the field.
PATHNAME xview
PATHNAME xview INDEX
PATHNAME xview moveto FRACTION
PATHNAME xview scroll COUNT units|pages
Description
With no argument, gives two fractions: the start and the end of the visible part of the text. With INDEX, scrolls so that the character at INDEX is at the left edge. moveto puts the fraction FRACTION of the text at the left edge. scroll moves by COUNT characters or COUNT widths of the field.
Returns
Two fractions, or an empty string.
Examples
% ttk::entry .texv
> .texv xview
0.0 1.0
% ttk::entry .texv2 -width 5
> pack .texv2
> .texv2 insert 0 [string repeat abc 50]
> .texv2 xview moveto 0
> update
> lindex [.texv2 xview] 0
0.0
Errors
% ttk::entry .texv3; .texv3 xview foo
bad entry index "foo"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1