scale coords
Gives the point in the scale of a value.
PATHNAME coords ?VALUE?
Description
Gives the x and the y in pixels, from the corner of the scale, of the center of the trough at VALUE. With no VALUE, uses the current value. The point depends on the size of the scale, so use it after update.
Returns
A list of two integers.
Examples
% scale .co -orient horizontal
> pack .co
> update
> llength [.co coords 50]
2
Errors
% scale .co2; .co2 coords 1 2
wrong # args: should be ".co2 coords ?value?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1