scale identify
Gives the part of the scale at a point.
PATHNAME identify X Y
Description
Gives slider, trough1 for the trough before the slider, trough2 for the trough after the slider, or an empty string for a point on no part. X and Y are in pixels from the corner of the scale.
Returns
slider, trough1, trough2, or an empty string.
Examples
% scale .id -orient horizontal
> pack .id
> update
> .id identify {*}[.id coords]
slider
Errors
% scale .id2; .id2 identify 1
wrong # args: should be ".id2 identify x y"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1