4 ; Implementation of sliders as a dbx control
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 -------------------------------------------------------------
39 [ :LNOT::DEF:slider__dfn
44 ; Control data: +0 == slider colour (if flags bit 9 clear)
45 ; +1 == background colour
46 ; +2 == separator colour
48 ; +4 == maximum slider value
51 ; Workspace: +0 == current slider value
52 ; +4 == slider colour (if flags bit 9 set)
53 ; +5 == reserved, must be 0
56 ; Flags: Bit 8 == slider is horizontal if clear, vertical is set
58 ; Use: Control type for a slider.
62 ;----- Macros and symbols ---------------------------------------------------
65 $label SLIDER $icon,$baseReg,$data,$flags,$slidC,$backC,$sepC,$max
67 $label CONTROL $icon,slider,$baseReg,$flags,$data
68 DCB $slidC,$backC,$sepC,0
74 ; --- Direction flags ---
76 slFlag_vertical EQU (1<<8)
77 slFlag_horizontal EQU 0
78 slFlag_colData EQU (1<<9)
80 ; --- Slider event codes ---
82 slider_event EQU &80000001 ;Something happened to slider
85 ;R3 == new value of slider
92 ;----- That's all, folks ----------------------------------------------------