4 ; String set dialogue box 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 -------------------------------------------------------------
43 [ :LNOT::DEF:stringSet__dfn
48 ; Control data: +0 == address of menu definition
49 ; +4 == address of string table
50 ; +8 == icon number in which to write string
53 ; Workspace: +0 == current value of radio selection
58 ; Use: Provides handling for a `menu button' -- when clicked, a
59 ; menu of possible values appears, from which the user may
60 ; choose an entry. The chosen string is copied to the icon.
64 ; --- stringSet_setValue ---
66 ; On entry: R0 == dialogue box handle
71 ; Use: Sets the contents of the display area attached to a string
72 ; set control from the current state of the control.
74 IMPORT stringSet_setValue
76 ;----- Macros and symbols ---------------------------------------------------
78 stringSet_event EQU &80000005 ;Value of stringset changed
82 $label STRSET $icon,$base,$data,$menu,$strings,$display
84 $label CONTROL $icon,stringSet,$base,0,$data
85 DCD $menu,$strings,$display
92 ;----- That's all, folks ----------------------------------------------------