canvas canvasy
Changes a y of the window to a y of the canvas.
PATHNAME canvasy SCREENY ?GRID?
Description
Gives the y coordinate of the canvas at the y SCREENY of the window, with the scroll of the view. With GRID, rounds the result to a multiple of GRID.
Returns
A number.
Examples
% canvas .cy -scrollregion {0 0 1000 1000}
> .cy yview moveto 0.5
> expr {[.cy canvasy 0] > 0}
1
Errors
% canvas .cy2; .cy2 canvasy
wrong # args: should be ".cy2 canvasy screeny ?gridspacing?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1