4 ; RISC OS menu handling facilities
6 ; © 1994-1998 Straylight
9 ;----- Licensing note -------------------------------------------------------
11 ; This file is part of Straylight's Sapphire library.
13 ; Sapphire is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
18 ; Sapphire is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sapphire. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ;----- Overview -------------------------------------------------------------
35 [ :LNOT::DEF:menu__dfn
40 ; On entry: R0 == pointer to menu definition table
41 ; R1 == event handler to use
42 ; R2 == R10 value for handler
43 ; R3 == R12 value for handler
47 ; Use: Creates a menu from the given menu definition
48 ; table. If this call is called more than once before
49 ; a menu is opened then the menu definiton are concatenated
50 ; into a large menu. Only the first menu title read is
51 ; taken notice of. Notice therefore, that the call doesn't
52 ; actually open a menu.
58 ; On entry: R0 == pointer to base message tag
59 ; R1 == index of menu item
63 ; Use: Adds a string to the help message found by adding the menu
64 ; item number to the base message tag.
74 ; Use: Initialises the menu system.
80 ;----- That's all, folks ----------------------------------------------------