head	1.19;
access;
symbols
	core-8-5-9:1.15.2.1
	core-8-5-8:1.15.2.1
	macosx-cocoa-merge:1.19
	macosx-cocoa-premerge:1.19
	macosx-carbon-freeze:1.19
	core-8-5-7:1.15.2.1
	core-8-5-6:1.15.2.1
	core-8-6-b1:1.19
	core-8-6-a3:1.19
	core-8-5-5:1.15.2.1
	core-8-6-a2:1.18
	core-8-5-4:1.15.2.1
	core-8-5-3:1.15.2.1
	core-8-6-a1:1.17
	core-8-4-19:1.6.8.1
	core-8-5-branch:1.15.0.2
	core-8-5-2:1.15
	core-8-4-18:1.6.8.1
	core-8-5-1:1.15
	core-8-4-17:1.6.8.1
	core-8-5-0:1.15
	core-8-5-b3:1.14
	core-8-5-b2:1.12
	core-8-4-16:1.6.8.1
	core-8-5-b1:1.12
	core-stablilizer-merge:1.11
	core-stabilizer-branch:1.11.0.2
	core-stabilizer-merge:1.15.2.1
	core-8-4-15:1.6.8.1
	core-8-5-a6:1.11
	core-8-5-a5:1.10
	core-8-4-14:1.6.8.1
	core-8-5-a4:1.10
	core-8-4-13:1.6.8.1
	core-8-4-12:1.6.8.1
	core-8-4-11:1.6.8.1
	core-8-5-a3:1.10
	core-8-4-10:1.6.8.1
	core-8-4-9-branch:1.6.8.1.0.2
	core-8-5-a2:1.9
	core-8-4-9:1.6.8.1
	core-8-4-8:1.6.8.1
	core-8-4-7:1.6
	core-8-5-a1:1.6
	core-8-4-6:1.6
	core-8-4-5:1.6
	mistachkin-dev-branch:1.6.0.10
	core-8-4-4:1.6
	core-8-4-3:1.6
	core-8-4-branch:1.6.0.8
	core-8-4-2:1.6
	core-8-4-1:1.6
	core-8-3-5:1.2
	core-8-4-0:1.6
	macosx-8-4-merge-2002-08-31-trunk:1.6
	macosx-8-4-premerge-2002-08-31-branch:1.6
	macosx-8-4-premerge-2002-08-31-trunk:1.6
	macosx-8-4-merge-2002-08-30-branch:1.6
	macosx-8-4-merge-2002-08-30-trunk:1.6
	macosx-8-4-merge-2002-08-20-branch:1.6
	macosx-8-4-merge-2002-08-20-trunk:1.6
	core-8-4-b2:1.6
	core-8-4-b1:1.6
	macosx-premerge-6-9-02:1.6
	core-8-4-a4:1.6
	core-8-3-4:1.2
	macosx-8-4-branch:1.6.0.6
	macosx-8-4-branchpoint:1.6
	core-8-4-a3:1.6
	core-8-3-3:1.2
	dgp-privates-into-namespace:1.6.0.4
	tclpro-1-5-0:1.2
	core-8-4-win-speedup:1.6.0.2
	core-8-4-a2:1.6
	tclpro-1-4-1:1.2
	tclpro-1-4-0:1.2
	core-8-3-2:1.2
	ajuba-ajuba2-2-1-base:1.2
	ajuba-ajuba2-2-0:1.2
	core-8-4-a1:1.5
	core-8-3-1-branch:1.2.0.18
	core-8-3-1:1.2
	scriptics-sc-2-0-b5:1.2
	scriptics-sc-2-0-fixed:1.2
	scriptics-sc-2-0-b2:1.2
	scriptics-sc-2-0-b1:1.2
	core-8-3-0:1.2
	core-8-3-b2:1.2
	core-8-3-b1:1.2
	scriptics-sc-1-1:1.2
	scriptics-sc-1-1-b1:1.2
	core-8-2-3:1.2
	scriptics-sc-1-1-branch:1.2.0.16
	scriptics-sc-1-1-base:1.2
	scriptics-sc-1-0:1.2
	scriptics-sc-1-0-branch:1.2.0.14
	scriptics-sc-1-0-base:1.2
	core-8-2-2:1.2
	core-8-2-1:1.2
	scriptics-bc-1-0-b1:1.2
	core-8-2-1-branch:1.2.0.12
	scriptics-tclpro-1-3-0:1.2
	core-8-2-0:1.2
	core-8-2-b3-branch:1.2.0.10
	core-8-2-b3-base:1.2
	scriptics-tclpro-1-3-b4:1.2
	core-8-2-b2:1.2
	scriptics-tclpro-1-3-b3:1.2
	core-8-2-b1:1.2
	scriptics-tclpro-1-3-b2:1.2
	merge-to-mainline-5/21/99:1.2
	scriptics-tclpro-1-3-b2-branch:1.2.0.8
	core-8-1-1:1.2
	scriptics-tclpro-1-3-b1:1.2
	core-8-1-1-base:1.2
	core-8-1-0:1.2
	merge-to-mainline-4-29-99:1.2
	merge-to-mainline-4-23-99:1.2
	core-8-1-branch-old:1.1.0.4
	core-8-0-6-branch:1.2.0.6
	core-8-0-6-base:1.2
	core-8-0-5:1.2
	core-8-1-b3:1.1.4.1
	core-8-1-b2:1.1.4.1
	dev-8-1-stubs-branch:1.1.4.1.0.2
	dev-stubs-branch:1.2.0.4
	scriptics-tclpro-1-2:1.2
	scriptics-tclpro-1-2-b2:1.2
	core-8-1-merge-2/10/99:1.2
	core-8-0-5-branch:1.2.0.2
	core-8-0-5-base:1.2
	scriptics-tclpro-1-2-b1:1.2
	scriptics-tclpro-1-2-a1:1.2
	core-8-1-b1:1.1.4.1
	core-8-0-4:1.2
	core-8-1-a2:1.1
	core-8-0-2:1.1
	core-8-0-3:1.2;
locks; strict;
comment	@# @;


1.19
date	2008.09.23.13.36.36;	author dkf;	state Exp;
branches;
next	1.18;

1.18
date	2008.06.30.22.57.02;	author dkf;	state Exp;
branches;
next	1.17;

1.17
date	2008.05.11.00.12.02;	author patthoyts;	state Exp;
branches;
next	1.16;

1.16
date	2008.04.20.19.19.23;	author patthoyts;	state Exp;
branches;
next	1.15;

1.15
date	2007.12.13.15.23.43;	author dgp;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2007.11.01.10.59.42;	author dkf;	state Exp;
branches;
next	1.13;

1.13
date	2007.10.29.16.04.13;	author dkf;	state Exp;
branches;
next	1.12;

1.12
date	2007.08.28.15.16.11;	author dkf;	state Exp;
branches;
next	1.11;

1.11
date	2006.12.13.23.04.32;	author hobbs;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2005.04.06.21.11.54;	author dkf;	state Exp;
branches;
next	1.9;

1.9
date	2004.10.28.10.22.51;	author dkf;	state Exp;
branches;
next	1.8;

1.8
date	2004.08.17.22.37.24;	author dkf;	state Exp;
branches;
next	1.7;

1.7
date	2004.08.16.14.01.10;	author dkf;	state Exp;
branches;
next	1.6;

1.6
date	2000.08.25.06.58.31;	author ericm;	state Exp;
branches
	1.6.8.1;
next	1.5;

1.5
date	2000.05.17.21.17.20;	author ericm;	state Exp;
branches;
next	1.4;

1.4
date	2000.05.13.00.39.06;	author ericm;	state Exp;
branches;
next	1.3;

1.3
date	2000.05.10.00.09.38;	author ericm;	state Exp;
branches;
next	1.2;

1.2
date	98.09.14.18.22.55;	author stanton;	state Exp;
branches;
next	1.1;

1.1
date	98.04.01.09.39.49;	author rjohnson;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	98.09.30.02.16.12;	author stanton;	state Exp;
branches;
next	;

1.6.8.1
date	2004.10.28.10.19.29;	author dkf;	state Exp;
branches;
next	;

1.11.2.1
date	2007.09.04.17.44.19;	author dgp;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2007.11.01.16.37.14;	author dgp;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2008.06.25.16.46.01;	author dgp;	state Exp;
branches;
next	;

1.15.2.1
date	2008.05.11.00.31.00;	author patthoyts;	state Exp;
branches;
next	;


desc
@@


1.19
log
@Fix [Bug 2118116]
@
text
@'\"
'\" Copyright (c) 1990-1994 The Regents of the University of California.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" 
'\" RCS: @@(#) $Id: button.n,v 1.18 2008/06/30 22:57:02 dkf Exp $
'\" 
.so man.macros
.TH button n 4.4 Tk "Tk Built-In Commands"
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
button \- Create and manipulate button widgets
.SH SYNOPSIS
\fBbutton\fR \fIpathName \fR?\fIoptions\fR?
.SO
\-activebackground	\-font	\-relief
\-activeforeground	\-foreground	\-repeatdelay
\-anchor	\-highlightbackground	\-repeatinterval
\-background	\-highlightcolor	\-takefocus
\-bitmap	\-highlightthickness	\-text
\-borderwidth	\-image	\-textvariable
\-compound	\-justify	\-underline
\-cursor	\-padx	\-wraplength
\-disabledforeground	\-pady
.SE
.SH "WIDGET-SPECIFIC OPTIONS"
.OP \-command command Command
Specifies a Tcl command to associate with the button.  This command
is typically invoked when mouse button 1 is released over the button
window.
.OP \-default default Default
Specifies one of three states for the default ring: \fBnormal\fR,
\fBactive\fR, or \fBdisabled\fR.  In active state, the button is drawn
with the platform specific appearance for a default button.  In normal
state, the button is drawn with the platform specific appearance for a
non-default button, leaving enough space to draw the default button
appearance.  The normal and active states will result in buttons of
the same size.  In disabled state, the button is drawn with the
non-default button appearance without leaving space for the default
appearance.  The disabled state may result in a smaller button than
the active state.
.OP \-height height Height
Specifies a desired height for the button.
If an image or bitmap is being displayed in the button then the value is in
screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR);
for text it is in lines of text.
If this option is not specified, the button's desired height is computed
from the size of the image or bitmap or text being displayed in it.
.OP \-overrelief overRelief OverRelief
Specifies an alternative relief for the button, 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 button.
The empty string is the default value.
.OP \-state state State
Specifies one of three states for the button:  \fBnormal\fR, \fBactive\fR,
or \fBdisabled\fR.  In normal state the button is displayed using the
\fBforeground\fR and \fBbackground\fR options.  The active state is
typically used when the pointer is over the button.  In active state
the button is displayed using the \fBactiveForeground\fR and
\fBactiveBackground\fR options.  Disabled state means that the button
should be insensitive:  the default bindings will refuse to activate
the widget and will ignore mouse button presses.
In this state the \fBdisabledForeground\fR and
\fBbackground\fR options determine how the button is displayed.
.OP \-width width Width
Specifies a desired width for the button.
If an image or bitmap is being displayed in the button then the value is in
screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR).
For a text button (no image or with \fB\-compound none\fR) then the width 
specifies how much space in characters to allocate for the text label.
If the width is negative then this specifies a minimum width.
If this option is not specified, the button's desired width is computed
from the size of the image or bitmap or text being displayed in it.
.BE
.SH DESCRIPTION
.PP
The \fBbutton\fR command creates a new window (given by the
\fIpathName\fR argument) and makes it into a button widget.
Additional
options, described above, may be specified on the command line
or in the option database
to configure aspects of the button such as its colors, font,
text, and initial relief.  The \fBbutton\fR command returns its
\fIpathName\fR argument.  At the time this command is invoked,
there must not exist a window named \fIpathName\fR, but
\fIpathName\fR's parent must exist.
.PP
A button is a widget that displays a textual string, bitmap or image.
If text is displayed, it must all be in a single font, but it
can occupy multiple lines on the screen (if it contains newlines
or if wrapping occurs because of the \fBwrapLength\fR option) and
one of the characters may optionally be underlined using the
\fBunderline\fR option.
It can display itself in either of three different ways, according
to
the \fBstate\fR option; 
it can be made to appear raised, sunken, or flat;
and it can be made to flash.  When a user invokes the
button (by pressing mouse button 1 with the cursor over the
button), then the Tcl command specified in the \fB\-command\fR
option is invoked.
.SH "WIDGET COMMAND"
.PP
The \fBbutton\fR command creates a new Tcl command whose
name is \fIpathName\fR.  This
command may be used to invoke various
operations on the widget.  It has the following general form:
.CS
\fIpathName option \fR?\fIarg arg ...\fR?
.CE
\fIOption\fR and the \fIarg\fRs
determine the exact behavior of the command.  The following
commands are possible for button widgets:
.TP
\fIpathName \fBcget\fR \fIoption\fR
Returns the current value of the configuration option given
by \fIoption\fR.
\fIOption\fR may have any of the values accepted by the \fBbutton\fR
command.
.TP
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
Query or modify the configuration options of the widget.
If no \fIoption\fR is specified, returns a list describing all of
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
information on the format of this list).  If \fIoption\fR is specified
with no \fIvalue\fR, then the command returns a list describing the
one named option (this list will be identical to the corresponding
sublist of the value returned if no \fIoption\fR is specified).  If
one or more \fIoption\-value\fR pairs are specified, then the command
modifies the given widget option(s) to have the given value(s);  in
this case the command returns an empty string.
\fIOption\fR may have any of the values accepted by the \fBbutton\fR
command.
.TP
\fIpathName \fBflash\fR
Flash the button.  This is accomplished by redisplaying the button
several times, alternating between the configured activebackground
and background colors.  At the end of the flash the button is left
in the same normal/active state as when the command was invoked.
This command is ignored if the button's state is \fBdisabled\fR.
.TP
\fIpathName \fBinvoke\fR
Invoke the Tcl command associated with the button, if there is one.
The return value is the return value from the Tcl command, or an
empty string if there is no command associated with the button.
This command is ignored if the button's state is \fBdisabled\fR.
.SH "DEFAULT BINDINGS"
.PP
Tk automatically creates class bindings for buttons that give them
default behavior:
.IP [1]
A button activates whenever the mouse passes over it and deactivates
whenever the mouse leaves the button.
Under Windows, this binding is only active when mouse button 1 has
been pressed over the button.
.IP [2]
A button's relief is changed to sunken whenever mouse button 1 is
pressed over the button, and the relief is restored to its original
value when button 1 is later released.
.IP [3]
If mouse button 1 is pressed over a button and later released over
the button, the button is invoked.  However, if the mouse is not
over the button when button 1 is released, then no invocation occurs.
.IP [4]
When a button has the input focus, the space key causes the button
to be invoked.
.PP
If the button's state is \fBdisabled\fR then none of the above
actions occur:  the button is completely non-responsive.
.PP
The behavior of buttons can be changed by defining new bindings for
individual widgets or by redefining the class bindings.
.SH EXAMPLES
.PP
This is the classic Tk
.QW "Hello, World!"
demonstration:
.PP
.CS
    \fBbutton\fR .b \-text "Hello, World!" \-command exit
    pack .b
.CE
.PP
This example demonstrates how to handle button accelerators:
.PP
.CS
    \fBbutton\fR .b1 \-text Hello \-underline 0
    \fBbutton\fR .b2 \-text World \-underline 0
    bind . <Key\-h> {.b1 flash; .b1 invoke}
    bind . <Key\-w> {.b2 flash; .b2 invoke}
    pack .b1 .b2
.CE
.SH "SEE ALSO"
ttk::button(n)
.SH KEYWORDS
button, widget
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.18
log
@Minor doc updates (removing out of date changebars, improving typedef formatting,
 etc.)
@
text
@a0 1
'\" -*- nroff -*-
d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.17 2008/05/11 00:12:02 patthoyts Exp $
d202 3
@


1.17
log
@Note negative widths for button
@
text
@d1 1
d9 1
a9 1
'\" RCS: @@(#) $Id: button.n,v 1.16 2008/04/20 19:19:23 patthoyts Exp $
a80 1

a107 1

a152 1

a178 1

d180 1
@


1.16
log
@Minor clarification of the button flash command (1926223)
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.15 2007/12/13 15:23:43 dgp Exp $
d73 4
a76 2
screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR);
for text it is in characters.
@


1.15
log
@merge stable branch onto HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.11.2.2 2007/11/01 16:37:14 dgp Exp $
d142 3
a144 3
several times, alternating between active and normal colors.  At
the end of the flash the button is left in the same normal/active
state as when the command was invoked.
@


1.15.2.1
log
@Backported documentation fixes from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.15 2007/12/13 15:23:43 dgp Exp $
d73 2
a74 4
screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR).
For a text button (no image or with \fB\-compound none\fR) then the width 
specifies how much space in characters to allocate for the text label.
If the width is negative then this specifies a minimum width.
@


1.14
log
@Make documentation use the name that scripts use as much as possible.
[Bug 1640073]
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.13 2007/10/29 16:04:13 dkf Exp $
@


1.13
log
@Lots more GOOBE stuff. Now works with 'make html'!
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.12 2007/08/28 15:16:11 dkf Exp $
d200 1
a200 1
ttk_button(n)
@


1.12
log
@Assorted documentation improvements.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.11 2006/12/13 23:04:32 hobbs Exp $
d50 1
a50 1
If this option isn't specified, the button's desired height is computed
d75 1
a75 1
If this option isn't specified, the button's desired width is computed
d181 3
a183 1
This is the classic Tk "Hello, World!" demonstration:
d186 1
a186 1
    \fBbutton\fR .b -text "Hello, World!" -command exit
d193 4
a196 4
    \fBbutton\fR .b1 -text Hello -underline 0
    \fBbutton\fR .b2 -text World -underline 0
    bind . <Key-h> {.b1 flash; .b1 invoke}
    bind . <Key-w> {.b2 flash; .b2 invoke}
@


1.11
log
@	* unix/Makefile.in (install-doc): intentionally skip ttk_dialog.n
	installation (not for public consumption)

	* doc/scrollbar.n, doc/button.n, doc/checkbutton.n:
	* doc/entry.n, doc/frame.n, doc/label.n, doc/labelframe.n:
	* doc/menu.n, doc/menubutton.n, doc/panedwindow.n:
	* doc/radiobutton.n, doc/scrollbar.n, doc/ttk_*: revamp ttk docs
	to use consist nroff format (not 100% consistent with classic
	widget docs).  Add more man page cross-linking "SEE ALSO".
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.10 2005/04/06 21:11:54 dkf Exp $
d180 17
a198 1

@


1.11.2.1
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.11 2006/12/13 23:04:32 hobbs Exp $
a179 17
.SH EXAMPLES
This is the classic Tk "Hello, World!" demonstration:
.PP
.CS
    \fBbutton\fR .b -text "Hello, World!" -command exit
    pack .b
.CE
.PP
This example demonstrates how to handle button accelerators:
.PP
.CS
    \fBbutton\fR .b1 -text Hello -underline 0
    \fBbutton\fR .b2 -text World -underline 0
    bind . <Key-h> {.b1 flash; .b1 invoke}
    bind . <Key-w> {.b2 flash; .b2 invoke}
    pack .b1 .b2
.CE
d182 1
@


1.11.2.2
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.11.2.1 2007/09/04 17:44:19 dgp Exp $
d50 1
a50 1
If this option is not specified, the button's desired height is computed
d75 1
a75 1
If this option is not specified, the button's desired width is computed
d181 1
a181 3
This is the classic Tk
.QW "Hello, World!"
demonstration:
d184 1
a184 1
    \fBbutton\fR .b \-text "Hello, World!" \-command exit
d191 4
a194 4
    \fBbutton\fR .b1 \-text Hello \-underline 0
    \fBbutton\fR .b2 \-text World \-underline 0
    bind . <Key\-h> {.b1 flash; .b1 invoke}
    bind . <Key\-w> {.b2 flash; .b2 invoke}
d198 1
a198 1
ttk::button(n)
@


1.11.2.3
log
@merge updates from 8.5 branch
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.11.2.2 2007/11/01 16:37:14 dgp Exp $
d73 2
a74 4
screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR).
For a text button (no image or with \fB\-compound none\fR) then the width 
specifies how much space in characters to allocate for the text label.
If the width is negative then this specifies a minimum width.
@


1.10
log
@Purge old and inaccurate .VS/.VE macros.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.9 2004/10/28 10:22:51 dkf Exp $
d180 3
@


1.9
log
@Assorted minor documentation fixes
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.8 2004/08/17 22:37:24 dkf Exp $
a34 1
.VS
a44 1
.VE
a51 1
.VS 8.4
a58 1
.VE 8.4
a159 1
.VS
a161 1
.VE
@


1.8
log
@Doc patches [1010083] and [1010607] from Mikhail Kolesnitschenko.
Also some general fixes to menu.n and text.n
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.7 2004/08/16 14:01:10 dkf Exp $
a27 1

@


1.7
log
@Standardize the -compound option to everywhere it ought to be. [Bug 712588]
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.6 2000/08/25 06:58:31 ericm Exp $
a46 1
ring.
@


1.6
log
@* doc/toplevel.n:
* doc/spinbox.n:
* doc/scrollbar.n:
* doc/scale.n:
* doc/menubutton.n:
* doc/menu.n:
* doc/listbox.n:
* doc/entry.n:
* doc/frame.n:
* doc/message.n:
* doc/checkbutton.n:
* doc/radiobutton.n:
* doc/button.n:
* doc/label.n:
* doc/canvas.n:
* doc/text.n: Fixed Standard Options section to make best use of
new tab settings in man.macros.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.5 2000/05/17 21:17:20 ericm Exp $
d19 7
a25 6
\-activebackground	\-foreground	\-repeatdelay
\-activeforeground	\-highlightbackground	\-repeatinterval
\-anchor	\-highlightcolor	\-takefocus
\-background	\-highlightthickness	\-text
\-bitmap	\-image	\-textvariable
\-borderwidth	\-justify	\-underline
d28 1
a28 1
\-font	\-relief
a34 10
.VS 8.4
.OP \-compound compound Compound
Specifies whether the button should display both an image and text,
and if so, where the image should be placed relative to the text.
Valid values for this option are \fBbottom\fR, \fBcenter\fR,
\fBleft\fR, \fBnone\fR, \fBright\fR and \fBtop\fR.  The default value
is \fBnone\fR, meaning that the button will display either an image or
text, depending on the values of the \fB\-image\fR and \fB\-bitmap\fR
options.
.VE
@


1.6.8.1
log
@Backport of documentation fixes
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.6 2000/08/25 06:58:31 ericm Exp $
d19 6
a24 7
\-activebackground	\-font	\-relief
\-activeforeground	\-foreground	\-repeatdelay
\-anchor	\-highlightbackground	\-repeatinterval
\-background	\-highlightcolor	\-takefocus
\-bitmap	\-highlightthickness	\-text
\-borderwidth	\-image	\-textvariable
\-compound	\-justify	\-underline
d27 1
d34 10
d56 1
@


1.5
log
@* doc/SetOptions.3: Added information about TK_OPTION_NULL_OK with
TK_OPTION_RELIEF.

* win/tkWinButton.c: Removed bits about TK_RELIEF_LINK.

* tests/button.test: Added tests for -overrelief; removed tests
for -relief link.

* mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK.

* generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK.

* generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added
support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF.

* library/button.tcl: Added binding support for -overrelief.

* generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL.

* generic/tkButton.c: Added -overrelief option; removed
Enter/Leave EventProc masks and handlers.

* generic/tk.h: Added TK_RELIEF_NULL definition, removed
TK_RELIEF_LINK.

* mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF):
* win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF):
* unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default
value for the -overrelief option.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.4 2000/05/13 00:39:06 ericm Exp $
d19 9
a27 9
\-activebackground      \-activeforeground       \-anchor
\-background            \-bitmap                 \-borderwidth
\-cursor                \-disabledforeground     \-font
\-foreground            \-highlightbackground    \-highlightcolor
\-highlightthickness    \-image                  \-justify
\-padx                  \-pady                   \-relief
\-repeatdelay           \-repeatinterval         \-takefocus
\-text                  \-textvariable           \-underline
\-wraplength
@


1.4
log
@* unix/tkUnixButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
* mac/tkMacButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
* win/tkWinButton.c (TkpDisplayButton, TkpComputeButtonGeometry):
Added code for drawing compound buttons.

* tests/button.test: Added configuration tests for -repeatdelay,
-repeatinterval, -compound.

* library/button.tcl: Added support for -repeatedelay,
-repeatinterval options.

* generic/tkOldConfig.c: Changed handling of link relief so that
proper error messages are used.

* generic/tkButton.h: Added -compound, -repeatdelay,
-repeatinterval options.

* generic/tkButton.c: Added event watchers for enter/leave events,
for link relief support.

* generic/tk3d.c: Changed handling of link relief so that proper
error messages are used.

* generic/tk.h: Changed values of
TK_OPTION_LINK_OK/TK_CONFIG_LINK_OK for link relief support.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.3 2000/05/10 00:09:38 ericm Exp $
d66 7
a72 6
.OP \-relief relief Relief
Specifies a relief for the button.  In addition to the standard relief
styles available to most widgets, buttons support the \fBlink\fR
relief style.  When using this relief style, buttons will have a
raised relief when they are active (when the mouse cursor is over the
button), and a flat relief otherwise.
@


1.3
log
@	* doc/button.n: Added documentation for link relief.

	* tests/button.test: Added tests for link relief for buttons.

	* generic/tk.h (TK_CONFIG_LINK_OK): Added definition of
	TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348]

	* generic/tk3d.c: Added support for link relief. [RFE: 4348]

	* mac/tkMacButton.c (TkpDisplayButton):
	* unix/tkUnixButton.c (TkpDisplayButton): Added support for link
	relief. [RFE: 4348]

	* generic/tkOldConfig.c (Tk_ConfigureWidget):
	* generic/tkConfig.c (DoObjConfig): Added understanding of link
	relief, which is allowed only for widgets that have
	TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief"
	option. [RFE: 4348]

	* generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option
	for buttons. [RFE: 4348]

	* win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW
	style bit, so that transient windows have full-size titlebars
	(like the tk_getOpenFile dialog).

	* win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height
	requested for separator bars to be (linespace - (2*descent))
	instead of just (linespace); this makes the separator occupy a
	more correct amount of vertical space. [Bug: 5303].
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.2 1998/09/14 18:22:55 stanton Exp $
d19 9
a27 6
\-activebackground	\-cursor	\-highlightthickness	\-takefocus
\-activeforeground	\-disabledforeground	\-image	\-text
\-anchor	\-font	\-justify	\-textvariable
\-background	\-foreground	\-padx	\-underline
\-bitmap	\-highlightbackground	\-pady	\-wraplength
\-borderwidth	\-highlightcolor	\-relief
d34 10
@


1.2
log
@Replaced SCCS strings, fixed binary files
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id$
d52 8
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
'\" SCCS: @@(#) button.n 1.40 97/10/31 12:58:48
@


1.1.4.1
log
@Merged 8.0.3 changes into 8.1
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: button.n,v 1.2 1998/09/14 18:22:55 stanton Exp $
@


