canvas yview
Reads or changes the vertical view of the canvas.
PATHNAME yview
PATHNAME yview moveto FRACTION
PATHNAME yview scroll N WHAT
Description
With no argument, gives two fractions: the first and the last visible part of the height of -scrollregion, from 0 to 1. moveto shows the region from FRACTION. scroll moves the view by N units (of -yscrollincrement), N pages, or N pixels.
Returns
Two fractions with no argument, else an empty string.
Examples
% canvas .yv -scrollregion {0 0 100 2000}
> pack .yv
> update
> llength [.yv yview]
2
Errors
% canvas .yv2; .yv2 yview moveto
wrong # args: should be ".yv2 yview moveto fraction"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1