4 ; Displays warning boxes
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 -------------------------------------------------------------
34 [ :LNOT::DEF:warning__dfn
39 ; On entry: R0 == pointer to warning text to display
40 ; R1 == pointer to buttons block
42 ; On exit: R0 == button that was clicked
43 ; CS if this was default, CC otherwise
45 ; Use: Displays a warning to the user. The warning box can have up
46 ; to five buttons (because it's too small for any more than
47 ; that). These are placed in a column on the right hand side
48 ; of the dialogue. The buttons are numbered from 0 up to 4
49 ; from the bottom upwards, 0 being the default. You can
50 ; choose one button to be `Cancel', in which case pressing
51 ; escape will activate it.
57 ; On entry: R0 == program name
61 ; Use: Sets up the Warning dialogue box for use.
67 ;----- That's all, folks ----------------------------------------------------