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_DecodeMenu

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_DecodeMenu

Wimp_DecodeMenu

(SWI &400D5)
Entry
R1 Pointer to menu data structure
R2 Pointer to list of menu selections
R3 Pointer to buffer for answer
Exit
R0 Corrupt

Use

This call is incredibly useful to decode menus by their contents rather than their item selection numbers. For example, a returned value of Edit.Paste would be mean that the user has selected the ‘Paste’ item within the ‘Edit’ sub-menu.

Notes

Buffer pointed to by R3 is updated to contain menu item texts, separated by a period sign .

The string is terminated with a CR control code.

See also

  • Wimp_CreateMenu
  • Wimp_CreateSubMenu
Created on June 6, 2009 13:10:23 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: The Window Manager SWI Calls, The Window Manager Menus, Wimp_CreateMenu, Menu_Selection

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