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

Gain_Caret

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» 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 June 17, 2009 22:51:27 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Keyboard Input And Text Handling, Poll Mask, Lose_Caret, Wimp_SetCaretPosition, Reason Codes

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