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 -------------------------------------------------------------
41 ; --- tms__closeMenu ---
43 ; On entry: R2 == pointer to menu to close
44 ; R10 == pointer to the menu we are currently over
48 ; Use: Closes the menu structure pointed to, and destroys it
52 ; --- tms__updateItem ---
54 ; On entry: R7 == pointer to the item to highlight
55 ; R10 == pointer to the menu
59 ; Use: Forces an update of the textual part of an item.
61 IMPORT tms__updateItem
63 ; --- tmsh__subWaiting ---
67 ; On exit: CS if we're waiting for a submenu, CC otherwise
69 ; Use: Informs transWin if a submenu is expected.
71 IMPORT tmsh__subWaiting
73 ; --- tmsh__openSub ---
75 ; On entry: R0 == window handle to open
79 ; Use: Opens the given window as a submenu from a tms menu.
83 ; --- tms__cleanUp ---
85 ; On entry: R0 == handle idle handler is called with (the menu)
89 ; Use: Called to clean up the system when the pointer has left
96 ; On entry: R0 == flags (as for doRedraw)
97 ; R10 == pointer to the menu
101 ; Use: Updates the entire menu.
105 ; --- tms__eventHandler ---
107 ; On entry: R0 == event, as returned from Wimp_Poll
108 ; R1 == pointer to the event block
109 ; R10 == pointer to the menu
113 ; Use: Deals with the event that has been sent to my window
115 IMPORT tms__eventHandler
119 ; On entry: R0 == pointer to base message tag
120 ; R1 == index of menu item
124 ; Use: Adds a string to the help message found by adding the menu
125 ; item number to the base message tag.
131 ;----- That's all, folks ----------------------------------------------------