ttk::notebook identify
Gives the element or the tab at a point.
PATHNAME identify ?element|tab? X Y
Description
With tab, gives the index of the tab at the pixel X and Y, or an empty string. With element or no word, gives the name of the element at the point, such as tab, or an empty string.
Returns
An element name, a tab index, or an empty string.
Examples
% ttk::notebook .tnbid
> ttk::frame .tnbid.a
> .tnbid add .tnbid.a -text First
> pack .tnbid
> update
> list [.tnbid identify tab 5 5] [.tnbid index @5,5]
0 0
Errors
% ttk::notebook .tnbid2; .tnbid2 identify foo 1 1
bad option "foo": must be element or tab
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1