beetlebug▾
/

spinbox 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 spinbox. The values depend on the font and on the scroll position.

Returns

A list of four integers.

Examples

% spinbox .bb
> .bb insert 0 abc
> llength [.bb bbox 1]
4

Errors

% spinbox .bb2; .bb2 bbox foo
bad spinbox index "foo"
-errorcode NONE

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

See also