; ; tmsCreate.sh ; ; Creation, recreation and destruction of tearoff menus ; ; © 1994-1998 Straylight ; ;----- Licensing note ------------------------------------------------------- ; ; This file is part of Straylight's Sapphire library. ; ; Sapphire is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2, or (at your option) ; any later version. ; ; Sapphire is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with Sapphire. If not, write to the Free Software Foundation, ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; tms_create ; tms__destroy ; tms__width ; tms_recreate ; --- tms_create --- ; ; On entry: R0 == pointer to a menu block ; R1 == pointer to event handler for the menu section ; R2 == R10 value to pass to the event handler ; R3 == R12 value to pass to the event handler ; ; On exit: R0 == tearoff handle for this menu ; May return an error ; ; Use: Creates a new menu, or adds sections to an existing one. IMPORT tms_create ; --- tms__destroy --- ; ; On entry: R0 == handle of tearoff menu to destroy ; ; On exit: -- ; ; Use: Zaps a tearoff menu entirely, leaving no survivors IMPORT tms__destroy ; --- tms__width --- ; ; On entry: R10 == pointer to the menu ; ; On exit: CS if the width has changed, CC otherwise ; ; Use: Calculates what the appropriate width fields of the given ; menu should be. IMPORT tms__width ; --- tms_recreate --- ; ; On entry: -- ; ; On exit: -- ; ; Use: Recreates the existing menu structure, making changes where ; appropriate. IMPORT tms_recreate ;----- That's all, folks ---------------------------------------------------- END