summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorericm <ericm>2000-05-25 16:57:23 (GMT)
committerericm <ericm>2000-05-25 16:57:23 (GMT)
commit1154932c72abbeb2e99ff4037f5fcfabe778a89b (patch)
treeb0f58532831951ab7b8a8bf2126ebea85f408697 /doc
parente738a8c0b81557adfe941a8ea6765de709cb65a8 (diff)
downloadtk-1154932c72abbeb2e99ff4037f5fcfabe778a89b.zip
tk-1154932c72abbeb2e99ff4037f5fcfabe778a89b.tar.gz
tk-1154932c72abbeb2e99ff4037f5fcfabe778a89b.tar.bz2
* doc/radiobutton.n: Added documentation for -overrelief option.
* doc/checkbutton.n: Added documentation for -overrelief option. * doc/label.n: Added documentation for -state option. * generic/tkButton.c: Added -overrelief option for checkbuttons, and radiobuttons. * library/button.tcl (tkButtonDown, macintosh version): Added protection against querying the -repeatdelay option from a widget that doesn't support it (ie, checkbuttons, radiobuttons, etc). Other platforms use a different binding script for checkbuttons and radiobuttons, so they don't have this issue. (tkCheckRadioEnter, windows version): Added code to handle -overrelief for check/radiobuttons on windows.
Diffstat (limited to 'doc')
-rw-r--r--doc/checkbutton.n25
-rw-r--r--doc/label.n23
-rw-r--r--doc/radiobutton.n25
3 files changed, 53 insertions, 20 deletions
diff --git a/doc/checkbutton.n b/doc/checkbutton.n
index 822ae26..a11d9a3 100644
--- a/doc/checkbutton.n
+++ b/doc/checkbutton.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: checkbutton.n,v 1.2 1998/09/14 18:22:55 stanton Exp $
+'\" RCS: @(#) $Id: checkbutton.n,v 1.3 2000/05/25 16:57:23 ericm Exp $
'\"
.so man.macros
.TH checkbutton n 4.4 Tk "Tk Built-In Commands"
@@ -16,12 +16,14 @@ checkbutton \- Create and manipulate checkbutton widgets
.SH SYNOPSIS
\fBcheckbutton\fI pathName \fR?\fIoptions\fR?
.SO
-\-activebackground \-cursor \-highlightthickness \-takefocus
-\-activeforeground \-disabledforeground \-image \-text
-\-anchor \-font \-justify \-textvariable
-\-background \-foreground \-padx \-underline
-\-bitmap \-highlightbackground \-pady \-wraplength
-\-borderwidth \-highlightcolor \-relief
+\-activebackground \-activeforeground \-anchor
+\-background \-bitmap \-borderwidth
+\-cursor \-disabledforeground \-font
+\-foreground \-highlightbackground \-highlightcolor
+\-highlightthickness \-image \-justify
+\-padx \-pady \-relief
+\-takefocus \-text \-textvariable
+\-underline \-wraplength
.SE
.SH "WIDGET-SPECIFIC OPTIONS"
.OP \-command command Command
@@ -47,6 +49,15 @@ this button is deselected. Defaults to ``0''.
.OP \-onvalue onValue Value
Specifies value to store in the button's associated variable whenever
this button is selected. Defaults to ``1''.
+.VS 8.4
+.OP \-overrelief overRelief OverRelief
+Specifies an alternative relief for the checkbutton, to be used when the
+mouse cursor is over the widget. This option can be used to make
+toolbar buttons, by configuring \fB\-relief flat \-overrelief
+raised\fR. If the value of this option is the empty string, then no
+alternative relief is used when the mouse cursor is over the checkbutton.
+The empty string is the default value.
+.VE 8.4
.OP \-selectcolor selectColor Background
Specifies a background color to use when the button is selected.
If \fBindicatorOn\fR is true then the color applies to the indicator.
diff --git a/doc/label.n b/doc/label.n
index 370f4f4..edc426b 100644
--- a/doc/label.n
+++ b/doc/label.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: label.n,v 1.2 1998/09/14 18:22:57 stanton Exp $
+'\" RCS: @(#) $Id: label.n,v 1.3 2000/05/25 16:57:23 ericm Exp $
'\"
.so man.macros
.TH label n 4.0 Tk "Tk Built-In Commands"
@@ -16,11 +16,14 @@ label \- Create and manipulate label widgets
.SH SYNOPSIS
\fBlabel\fR \fIpathName \fR?\fIoptions\fR?
.SO
-\-anchor \-font \-image \-takefocus
-\-background \-foreground \-justify \-text
-\-bitmap \-highlightbackground \-padx \-textvariable
-\-borderwidth \-highlightcolor \-pady \-underline
-\-cursor \-highlightthickness \-relief \-wraplength
+\-activebackground \-activeforeground \-anchor
+\-background \-bitmap \-borderwidth
+\-cursor \-font \-foreground
+\-highlightbackground \-highlightcolor \-highlightthickness
+\-image \-justify \-padx
+\-pady \-relief \-takefocus
+\-text \-textvariable \-underline
+\-wraplength
.SE
.SH "WIDGET-SPECIFIC OPTIONS"
.OP \-height height Height
@@ -30,6 +33,14 @@ screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR);
for text it is in lines of text.
If this option isn't specified, the label's desired height is computed
from the size of the image or bitmap or text being displayed in it.
+.OP \-state state State
+Specifies one of three states for the label: \fBnormal\fR, \fBactive\fR,
+or \fBdisabled\fR. In normal state the button is displayed using the
+\fBforeground\fR and \fBbackground\fR options. In active state
+the label is displayed using the \fBactiveForeground\fR and
+\fBactiveBackground\fR options. In the disabled state the
+\fBdisabledForeground\fR and \fBbackground\fR options determine how
+the button is displayed.
.OP \-width width Width
Specifies a desired width for the label.
If an image or bitmap is being displayed in the label then the value is in
diff --git a/doc/radiobutton.n b/doc/radiobutton.n
index 5b4e85c..b9de0fd 100644
--- a/doc/radiobutton.n
+++ b/doc/radiobutton.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: radiobutton.n,v 1.2 1998/09/14 18:22:59 stanton Exp $
+'\" RCS: @(#) $Id: radiobutton.n,v 1.3 2000/05/25 16:57:23 ericm Exp $
'\"
.so man.macros
.TH radiobutton n 4.4 Tk "Tk Built-In Commands"
@@ -16,12 +16,14 @@ radiobutton \- Create and manipulate radiobutton widgets
.SH SYNOPSIS
\fBradiobutton\fR \fIpathName \fR?\fIoptions\fR?
.SO
-\-activebackground \-cursor \-highlightthickness \-takefocus
-\-activeforeground \-disabledforeground \-image \-text
-\-anchor \-font \-justify \-textvariable
-\-background \-foreground \-padx \-underline
-\-bitmap \-highlightbackground \-pady \-wraplength
-\-borderwidth \-highlightcolor \-relief
+\-activebackground \-activeforeground \-anchor
+\-background \-bitmap \-borderwidth
+\-cursor \-disabledforeground \-font
+\-foreground \-highlightbackground \-highlightcolor
+\-highlightthickness \-image \-justify
+\-padx \-pady \-relief
+\-takefocus \-text \-textvariable
+\-underline \-wraplength
.SE
.SH "WIDGET-SPECIFIC OPTIONS"
.OP \-command command Command
@@ -51,6 +53,15 @@ for the entire widget, in place of \fBbackground\fR or \fBactiveBackground\fR,
whenever the widget is selected.
If specified as an empty string then no special color is used for
displaying when the widget is selected.
+.VS 8.4
+.OP \-overrelief overRelief OverRelief
+Specifies an alternative relief for the radiobutton, to be used when the
+mouse cursor is over the widget. This option can be used to make
+toolbar buttons, by configuring \fB\-relief flat \-overrelief
+raised\fR. If the value of this option is the empty string, then no
+alternative relief is used when the mouse cursor is over the radiobutton.
+The empty string is the default value.
+.VE 8.4
.OP \-selectimage selectImage SelectImage
Specifies an image to display (in place of the \fBimage\fR option)
when the radiobutton is selected.