chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Sapphire / sh / dbx / arrow
1 ;
2 ; dbx.arrow.sh
3 ;
4 ; Implementation of arrow icons as dbx controls
5 ;
6 ; © 1994-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's Sapphire library.
12 ;
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)
16 ; any later version.
17 ;
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.
22 ;
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.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ;  arrow
32 ;
33 ; Macros provided:
34 ;
35 ;   ARROW
36
37                 GET     sapphire:dbx.dbx
38
39                 [       :LNOT::DEF:arrow__dfn
40                 GBLL    arrow__dfn
41
42 ; --- arrow ---
43 ;
44 ; Control data: +0 == increment when clicked with Select
45 ;               +4
46 ;
47 ; Workspace:    --
48 ;
49 ; Flags:        --
50 ;
51 ; Use:          Control type for an arrow button.
52
53                 IMPORT  arrow
54
55 ;----- Macros and symbols ---------------------------------------------------
56
57                 MACRO
58 $label          ARROW   $icon,$inc
59
60 $label          CONTROL $icon,arrow,,0
61                 DCD     $inc
62                 ECTRL
63
64                 MEND
65
66 ; --- Arrow event codes ---
67
68 arrow_event     EQU     &80000002               ;Click on an arrow button
69                                                 ;R1 == icon handle
70                                                 ;R2 == increment value or 0
71
72                 ]
73
74 ;----- That's all, folks ----------------------------------------------------
75
76                 END