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

Gain_Caret

WindowManager
» SWI Calls
» Wimp_Poll
» Reason Codes
» Gain_Caret

Gain_Caret

(Reason Code 12)
Exit
Block
+0 Window handle
+4 Icon handle, or -1 if none
+8 X offset (relative to window origin)
+12 Y offset (relative to window origin)
+16 Caret Flags
+20 Index into string, or -1 if none

Use

This code is returned from Wimp_Poll and indicates that the window has now received the input focus.

Notes

This event usually occurs due to a user clicking on an icon or window that accepts text. It can also happen if an application explicitly calls Wimp_SetCaretPosition.

Windows and icons can be set to accept text by setting the button types within the window flag and icon flags respectively.

This event code is not generated if the input focus changes within the same window.

See also

  • Caret Flags
  • Icon Button Types
  • Lose_Caret
  • Reason Codes
  • Window Button Types
  • Wimp_Poll
  • Wimp_SetCaretPosition
Revised on December 9, 2013 15:42:25 by Jeffrey Lee (213) (91.84.11.161)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: WindowManager Keyboard Input And Text Handling, Poll Mask, Lose_Caret, Wimp_SetCaretPosition, Reason Codes

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