beetlebug▾
/

panedwindow identify

Gives the sash or the handle at a point.

PATHNAME identify X Y

Description

Gives a list of the index of the sash and the word sash or handle when the point X,Y is on a sash or on its handle. Gives an empty string for a point on no sash. X and Y are in pixels from the corner of the panedwindow.

Returns

A list of an index and a word, or an empty string.

Examples

% panedwindow .id
> label .id.a -text A
> label .id.b -text B
> .id add .id.a .id.b
> pack .id
> update
> .id identify {*}[.id sash coord 0]
0 sash

Errors

% panedwindow .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

See also