RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Wimp_SetCaretPosition

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» 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
Created on June 11, 2009 23:28:00 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: The Window Manager SWI Calls, The Window Manager Keyboard Input And Text Handling, Wimp_GetCaretPosition, Caret Flags, Lose_Caret, Gain_Caret, Wimp_SetIconState

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 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