diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-29 16:04:11 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-29 16:04:11 (GMT) |
commit | 447c5cc18c467353963659dc23a69436b253293c (patch) | |
tree | f1b13d0b63bdcb785dc2718534eb209b9796d50b /doc/button.n | |
parent | 5f3a1bfa8de8e91197ca501ca72204d29cd4ba4d (diff) | |
download | tk-447c5cc18c467353963659dc23a69436b253293c.zip tk-447c5cc18c467353963659dc23a69436b253293c.tar.gz tk-447c5cc18c467353963659dc23a69436b253293c.tar.bz2 |
Lots more GOOBE stuff. Now works with 'make html'!
Diffstat (limited to 'doc/button.n')
-rw-r--r-- | doc/button.n | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/doc/button.n b/doc/button.n index fcb44ff..d750516 100644 --- a/doc/button.n +++ b/doc/button.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: button.n,v 1.12 2007/08/28 15:16:11 dkf Exp $ +'\" RCS: @(#) $Id: button.n,v 1.13 2007/10/29 16:04:13 dkf Exp $ '\" .so man.macros .TH button n 4.4 Tk "Tk Built-In Commands" @@ -47,7 +47,7 @@ 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 isn't specified, the button's desired height is computed +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 @@ -72,7 +72,7 @@ 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 text it is in characters. -If this option isn't specified, the button's desired width is computed +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 @@ -178,20 +178,22 @@ The behavior of buttons can be changed by defining new bindings for individual widgets or by redefining the class bindings. .SH EXAMPLES -This is the classic Tk "Hello, World!" demonstration: +This is the classic Tk +.QW "Hello, World!" +demonstration: .PP .CS - \fBbutton\fR .b -text "Hello, World!" -command exit + \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} + \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" |