Tk\_SetCaretPos(3) Tk Library Procedures Tk\_SetCaretPos(3)

```

```

# [NAME](#NAME)

Tk\_SetCaretPos - set the display caret location

# [SYNOPSIS](#SYNOPSIS)

```
#include <tk.h>

int
Tk_SetCaretPos(tkwin, x, y, height)
```

# [ARGUMENTS](#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](#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](#KEYWORDS)

caret, cursor

8.4 Tk

---

Document: Tk_SetCaretPos(3) from tk 9.0.4-r2 (Chainguard OS)
Source: https://downloads.sourceforge.net/sourceforge/tcl/tk9.0.4-src.tar.gz
