ttk::entry bbox
Gives the box of a character of the text.
PATHNAME bbox INDEX
Description
The box is a list of 4 integers: the x and y of the top left corner in the widget, the width, and the height. The y can be below 0 before the widget is on the screen.
Returns
A list of 4 integers.
Examples
% ttk::entry .tebb
> .tebb insert 0 abc
> llength [.tebb bbox 0]
4
Errors
% ttk::entry .tebb2; .tebb2 bbox
wrong # args: should be ".tebb2 bbox index"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1