AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Offset     Contents                    Normal value

0     menu title (if 0 string, no title)
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               (calculated by Wimp)
20     height of menu items               44
24     vertical gap between items          0
28     menu items (24 bytes each)

If bit 8 of the flags for the first item is set, then the menu's title is indirected, and the 3 first words are as for an indirected text icon.

If the menu's title begins with "\", then this menu and all its submenus are "reversed"
Menu item
Offset     Contents

0     item flags
4     submenu pointer, or window handle or -1 if nothing
8     icon flags (as for normal icon)
12     12 bytes of icon data (as for normal icon)
Item flags
Bit     Meaning

0     Tick to left of item
1     Dotted line following item
2     Item is writable
3     Generate message when submenu
4     Submenu can be opened even when greyed out
7     This is last item in menu
8     (Only in first menuitem) Menu title is indirected
9-31    Reserved, must be 0

[sh-index] Back to list of manuals