Tcl8.6.14/Tk8.6.14 Documentation > Tk C API, version 8.6.14 > SetCaret

Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API


Tk_SetCaretPos — set the display caret location


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


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.


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.


caret, cursor
Copyright © 2002 ActiveState Corporation.