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

Page "Home Page" does not exist. Please create it now, or hit the "back" button in your browser.

Menu Block

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_CreateMenu
» Menu Block

Menu Block

Offset Contents Default
+ 0 Menu title (if null, then the menu is untitled)
+12 Title foreground and frame colour 7
+13 Title background colour 2
+14 Work area foreground colour 7
+15 Work area background colour 0
+16 Width of menu items
+20 Height of menu items 44
+24 Vertical gap between items 0
+28 Menu Items (24 bytes each)

Notes

To enable menu windows to open on the other alternate side of the menu window, the menu title should be prefixed with ‘\’. This also reverses the sides that ticks and sub-menu arrows appear, and reverse the text alignment settings.

Work area colours do not need to be defined, unless the vertical gap value at offset 24 is greater than 0.

If the Menu title is not indirected (set within the menu items), then the length can be no greater than 12 characters. The title must also be terminated by use of a control code.

See also

  • Wimp_CreateMenu
  • Menu Items
Revised on June 17, 2009 21:15:19 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Wimp_CreateMenu, Menu Items, Item Flags, Wimp_CreateSubMenu

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