ttk::spinbox 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::spinbox .tsbxv
> .tsbxv xview
0.0 1.0
% ttk::spinbox .tsbxv2 -width 5
> pack .tsbxv2
> .tsbxv2 insert 0 [string repeat abc 50]
> .tsbxv2 xview moveto 0
> update
> lindex [.tsbxv2 xview] 0
0.0
Errors
% ttk::spinbox .tsbxv3; .tsbxv3 xview foo
bad spinbox index "foo"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1