Tcl8.6b2/Tk8.6b2 Documentation > TkLib > SetCaret

Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands, version 4.0b7 | TDBC Package Commands, version 1.0b17 | Thread Package Commands, version 2.6.7 | Tcl Library | Tk Library | [incr Tcl] Package Library, version 4.0b7 | TDBC Package Library, version 1.0b17

NAME

Tk_SetCaretPos — set the display caret location

SYNOPSIS

#include <tk.h>
int
Tk_SetCaretPos(tkwin, x, y, height)

ARGUMENTS

Tk_Window tkwin (in)
Token for window.

int x (in)
Window-relative x coordinate.

int y (in)
Window-relative y coordinate.

int h (in)
Height of the caret in the window.

DESCRIPTION

Tk_SetCaretPos sets the caret location for the display of the specified Tk_Window tkwin. The caret is the per-display cursor location used for indicating global focus (e.g. to comply with Microsoft Accessibility guidelines), as well as for location of the over-the-spot XIM (X Input Methods) or Windows IME windows.

KEYWORDS

caret, cursor
Copyright © 2002 ActiveState Corporation.