entry bbox
Gives the box of the character at INDEX.
PATHNAME bbox INDEX
Description
Gives four integers: the x and the y of the top left corner of the character, its width, and its height, in pixels from the corner of the entry. The values depend on the font and on the scroll position.
Returns
A list of four integers.
Examples
% entry .bb
> .bb insert 0 abc
> llength [.bb bbox 1]
4
Errors
% entry .bb2; .bb2 bbox foo
bad entry index "foo"
-errorcode NONE
% entry .bb3; .bb3 bbox
wrong # args: should be ".bb3 bbox index"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1