canvas icursor
Moves the insertion cursor of a text item.
PATHNAME icursor TAGORID INDEX
Description
Puts the insertion cursor of each text item of TAGORID before the character at INDEX. The cursor shows while the item has the focus.
Returns
An empty string.
Examples
% canvas .ic
> .ic create text 0 0 -text hello
> .ic icursor 1 end
> .ic index 1 insert
5
Errors
% canvas .ic2; .ic2 create text 0 0 -text abc; .ic2 icursor 1 bogus
bad index "bogus"
-errorcode NONE
% canvas .ic3; .ic3 icursor
wrong # args: should be ".ic3 icursor tagOrId index"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1