RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Wimp_SetCaretPosition

WindowManager
» SWI Calls
» Wimp_SetCaretPosition

Wimp_SetCaretPosition

(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, or -1 if none
R5 Index into string, or -1 if writeable icon

Use

The purpose of this call is to move the caret to a new position..

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 and Lose_Caret events via Wimp_Poll.

See also

  • Caret Flags
  • Gain_Caret
  • Lose_Caret
  • Reason Codes
  • Wimp_GetCaretPosition
  • Wimp_Poll
Revised on December 9, 2013 15:56:15 by Jeffrey Lee (213) (91.84.11.161)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: WindowManager SWI Calls, WindowManager Keyboard Input And Text Handling, Wimp_GetCaretPosition, Caret Flags, Lose_Caret, Gain_Caret, Wimp_SetIconState

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys