menu yposition
Gives the y coordinate of the entry at INDEX.
PATHNAME yposition INDEX
Description
Gives the y in pixels of the top of the entry, from the top of the menu.
Returns
An integer.
Examples
% menu .yp -tearoff 0
> .yp add command -label A
> .yp add command -label B
> expr {[.yp yposition 1] > [.yp yposition 0]}
1
Errors
% menu .yp2; .yp2 yposition
wrong # args: should be ".yp2 yposition index"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1