diff options
author | drh <drh@sqlite.org> | 2002-06-17 10:54:29 (GMT) |
---|---|---|
committer | drh <drh@sqlite.org> | 2002-06-17 10:54:29 (GMT) |
commit | 90037ac50d2b47d8beb6aaa0d812489f6fd8f6a4 (patch) | |
tree | 23b6e0c259b3c43053f44dbf6557b7a8ea074079 /generic/tkButton.c | |
parent | df16beef2394e43a851c02727b1544950cebee65 (diff) | |
download | tk-90037ac50d2b47d8beb6aaa0d812489f6fd8f6a4.zip tk-90037ac50d2b47d8beb6aaa0d812489f6fd8f6a4.tar.gz tk-90037ac50d2b47d8beb6aaa0d812489f6fd8f6a4.tar.bz2 |
Initial implementation of TIP #82: added the -offrelief option to
checkbutton and radiobutton to allow those widgets to have a
MS-Office look and feel.
Diffstat (limited to 'generic/tkButton.c')
-rw-r--r-- | generic/tkButton.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c index fc9eab1..429916f 100644 --- a/generic/tkButton.c +++ b/generic/tkButton.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkButton.c,v 1.17 2002/05/26 09:25:56 pspjuth Exp $ + * RCS: @(#) $Id: tkButton.c,v 1.18 2002/06/17 10:54:29 drh Exp $ */ #include "tkButton.h" @@ -310,6 +310,8 @@ static Tk_OptionSpec checkbuttonOptionSpecs[] = { DEF_BUTTON_INDICATOR, -1, Tk_Offset(TkButton, indicatorOn), 0, 0, 0}, {TK_OPTION_JUSTIFY, "-justify", "justify", "Justify", DEF_BUTTON_JUSTIFY, -1, Tk_Offset(TkButton, justify), 0, 0, 0}, + {TK_OPTION_RELIEF, "-offrelief", "offRelief", "OffRelief", + DEF_BUTTON_RELIEF, -1, Tk_Offset(TkButton, offRelief), 0, 0, 0}, {TK_OPTION_STRING, "-offvalue", "offValue", "Value", DEF_BUTTON_OFF_VALUE, Tk_Offset(TkButton, offValuePtr), -1, 0, 0, 0}, {TK_OPTION_STRING, "-onvalue", "onValue", "Value", @@ -418,6 +420,8 @@ static Tk_OptionSpec radiobuttonOptionSpecs[] = { 0, 0, 0}, {TK_OPTION_JUSTIFY, "-justify", "justify", "Justify", DEF_BUTTON_JUSTIFY, -1, Tk_Offset(TkButton, justify), 0, 0, 0}, + {TK_OPTION_RELIEF, "-offrelief", "offRelief", "OffRelief", + DEF_BUTTON_RELIEF, -1, Tk_Offset(TkButton, offRelief), 0, 0, 0}, {TK_OPTION_RELIEF, "-overrelief", "overRelief", "OverRelief", DEF_BUTTON_OVER_RELIEF, -1, Tk_Offset(TkButton, overRelief), TK_OPTION_NULL_OK, 0, 0}, |