beetlebug▾
/

spinbox icursor

Moves the insertion cursor to INDEX.

PATHNAME icursor INDEX

Description

Puts the insertion cursor before the character at INDEX. The index insert then gives that place, and the next typed character goes there.

Returns

An empty string.

Examples

% spinbox .ic
> .ic insert 0 abcdef
> .ic icursor 2
> .ic index insert
2

Errors

% spinbox .ic2; .ic2 icursor
wrong # args: should be ".ic2 icursor pos"
-errorcode NONE

% spinbox .ic3; .ic3 icursor foo
bad spinbox index "foo"
-errorcode NONE

Facts

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

See also