RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: 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

   .