beetlebug▾
/

ttk::combobox 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::combobox .tcbbb
> .tcbbb insert 0 abc
> llength [.tcbbb bbox 0]
4

Errors

% ttk::combobox .tcbbb2; .tcbbb2 bbox
wrong # args: should be ".tcbbb2 bbox index"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also