h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » Wimp_SetCaretPosition h2. Wimp_SetCaretPosition h5. (SWI &400D2) |_<^. Entry | | |<^. R0 |<^. Window handle, or -1 to turn off | |<^. R1 |<^. Icon handle, or -1 for caret in window work area | |<^. R2 |<^. X offset | |<^. R3 |<^. Y offset | |<^. R4 |<^. [[Caret Flags|Caret Flags]], or -1 if none | |<^. R5 |<^. Index into string, or -1 if writeable icon | h4. Use The purpose of this call is to move the caret to a new position.. h4. Notes The index value is a byte index, and not a character index. Therefore, there is only a distinction when the system alphabet is UTF8. Tasks are informed of a window gaining or losing input focus by [[Gain_Caret|Gain_Caret]] and [[Lose_Caret|Lose_Caret]] events via [[Wimp_Poll|Wimp_Poll]]. h4. See also * [[Caret Flags|Caret Flags]] * [[Gain_Caret|Gain_Caret]] * [[Lose_Caret|Lose_Caret]] * [[Reason Codes|Reason Codes]] * [[Wimp_GetCaretPosition|Wimp_GetCaretPosition]] * [[Wimp_Poll|Wimp_Poll]]