listbox xview
Reads or changes the horizontal view of items wider than the listbox.
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 width of the longest item, from 0 to 1. With a number, shows the text from that count of characters. moveto shows the items from FRACTION of the width. scroll moves the view by N units (characters), N pages (widths of the listbox), or N pixels.
Returns
Two fractions with no argument, else an empty string.
Examples
% listbox .xv
> .xv insert end a
> pack .xv
> update
> .xv xview
0.0 1.0
Errors
% listbox .xv2; .xv2 xview scroll 1 bogus
bad argument "bogus": must be units or pages
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1