3 * A true-colour dialogue box thingy
7 * © 1991-1998 Straylight
10 /*----- Licensing note ----------------------------------------------------*
12 * This file is part of Straylight's Steel library.
14 * Steel is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2, or (at your option)
19 * Steel is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Steel. If not, write to the Free Software Foundation,
26 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 tcol_OK, /* User clicked OK, and dbox closed */
39 tcol_OK_REOPEN, /* User clicked OK, and dbox stays open */
40 tcol_CANCEL /* Dbox closed without changes (since last OK) */
45 * A function to be called when all is said and done.
47 typedef void (*tcol_finishhandler)(tcol_reason r,
57 * tcol_finishhandler proc,
62 * Creates and handles a dbox, which allows the user to input a true
63 * colour. You must have a template called 'tcol' for this routine.
66 * char *editing == what we're editing (put in the little box at the top)
67 * wimp_paletteword c == the initial colour
68 * BOOL isStatic == whether the dbox is static
69 * tcol_finishhandler proc == procedure called when the user clicks OK
70 * void *handle == the jolly old handle
78 tcol_finishhandler proc,