4 ; The Straylight Tearoff Menu Segment
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 -------------------------------------------------------------
36 ;---- Functions provided ----------------------------------------------------
40 ; On entry: R0 == pointer to a menu block
41 ; R1 == pointer to event handler for the menu section
42 ; R2 == R10 value to pass to the event handler
43 ; R3 == R12 value to pass to the event handler
45 ; On exit: R0 == tearoff handle for this menu
46 ; VS and R0 == pointer to error block if it failed, as normal
48 ; Use: Creates a new menu, or adds sections to an existing one.
52 ; --- tms_recreate ---
58 ; Use: Recreates the existing menu structure, making changes where
65 ; On entry: R0 == pointer to base message tag
66 ; R1 == index of menu item
70 ; Use: Adds a string to the help message found by adding the menu
71 ; item number to the base message tag.
81 ; Use: Initialises the tearoff menu segment
85 ;----- That's all, folks ----------------------------------------------------