tk caret
Gives or sets the place of the text cursor of a window, for the input methods and the screen readers.
tk caret WINDOW ?-x X? ?-y Y? ?-height HEIGHT?
Description
With no option, gives a dict of -height, -x, and -y, each 0 at the start. With one option, gives its value. With options and values, sets them. In ztk the values are stored for the script only. ztk does not give them to the platform.
Returns
A dict, a value, or an empty string.
Examples
% tk caret .
-height 0 -x 0 -y 0
% tk caret . -x 10 -y 20 -height 16
> tk caret . -y
20
Errors
% tk caret .nope
bad window path name ".nope"
-errorcode NONE
Differences from Tcl
- The values are stored with no effect. On Tk 8.6.16 they place the window of the input method.
tk caretwith no window gives a wrong # args message that names::ztk::priv::tk_caret. Tk 8.6.16 namestk caret.
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1