scrollbar identify
Gives the element of the scrollbar 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. X and Y are in pixels from the corner of the scrollbar.
Returns
An element name, or an empty string.
Examples
% scrollbar .id
> pack .id -fill y
> .id set 0.25 0.75
> update
> .id identify 5 [expr {[winfo height .id] / 2}]
slider
Errors
% scrollbar .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