4 ; dbx control for selecting Wimp colours
6 ; © 1995-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 -------------------------------------------------------------
39 [ :LNOT::DEF:colourPot__dfn
44 ; Control data: +0 == null terminated title string, or empty for default
47 ; Workspace: +0 == current colour selected
50 ; Flags: bit 8 == allow transparent
52 ; Use: Provides a `colour button' which allows the user to choose
53 ; a Wimp colour. Transparent is represented by 255.
57 ;----- Macros and constants -------------------------------------------------
60 $label COLPOT $icon,$baseReg,$data,$flags,$title
62 $label CONTROL $icon,colourPot,$baseReg,$flags,$data
71 cpFlag_trans EQU (1<<8) ;Allow transparent colour
75 colourPot_event EQU &80000006 ;User has changed the colour
81 ;----- That's all, folks ----------------------------------------------------