; ; colourBox.sh ; ; Gives you a nice box from which the user may choose a WIMP colour ; ; © 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: ; ; colourBox [ :LNOT::DEF:colourbox__dfn GBLL colourbox__dfn ; --- colourBox --- ; ; On entry: R0 == pointer to a title string (message tag) ; R1 == the current colour in bottom byte, and flags: ; bit 8 == allow transparent colour ; R2 == event handler to call ; R3 == R10 value to pass to handler ; R4 == R12 value to pass to handle ; ; On exit: May return an error ; ; Use: Opens a dialogue box which allows the user to choose ; one of the wimp colours. A transparent colour is supported, ; and represented as colour 255. IMPORT colourBox ] ;----- Events -------------------------------------------------------------- ^ 0 cbEvent_select # 1 ;User selected a colour ;R1 == colour selected ;----- That's all, folks ---------------------------------------------------- END