diff options
Diffstat (limited to 'doc/ttk_button.n')
-rw-r--r-- | doc/ttk_button.n | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/ttk_button.n b/doc/ttk_button.n index cf42e28..4c24a45 100644 --- a/doc/ttk_button.n +++ b/doc/ttk_button.n @@ -10,14 +10,14 @@ .SH NAME ttk::button \- Widget that issues a command when pressed .SH SYNOPSIS -\fBttk::button\fR \fIpathName \fR?\fIoptions\fR? +\fBttk::button\fI pathName \fR?\fIoptions\fR? .BE .SH DESCRIPTION A \fBttk::button\fR widget displays a textual label and/or image, and evaluates a command when pressed. .SO ttk_widget \-class \-compound \-cursor -\-image \-state \-style +\-image \-justify \-state \-style \-takefocus \-text \-textvariable \-underline \-width .SE @@ -48,15 +48,26 @@ with an extra highlight ring, or with a different border color. .SH "WIDGET COMMAND" .PP In addition to the standard -\fBcget\fR, \fBconfigure\fR, \fBidentify\fR, \fBinstate\fR, and \fBstate\fR -commands, buttons support the following additional widget commands: +\fBcget\fR, \fBconfigure\fR, \fBidentify element\fR, \fBinstate\fR, +\fBstate\fR and \fBstyle\fR +commands (see \fBttk::widget\fR), +button widgets support the following additional commands: +.\" METHOD: invoke .TP \fIpathName \fBinvoke\fR +. Invokes the command associated with the button. .SH "STANDARD STYLES" .PP \fBTtk::button\fR widgets support the \fBToolbutton\fR style in all standard themes, which is useful for creating widgets for toolbars. +.PP +In the Aqua theme there are several other styles which can be used to +produce replicas of many of the different button types that are +discussed in Apple's Human Interface Guidelines. These include +\fBDisclosureButton\fR, \fBDisclosureTriangle\fR, \fBHelpButton\fR, +\fBImageButton\fR, \fBInlineButton\fR, \fBGradientButton\fR, +\fBRoundedRectButton\fR, and \fBRecessedButton\fR. .SH "STYLING OPTIONS" .PP The class name for a \fBttk::button\fP is \fBTButton\fP. @@ -94,7 +105,7 @@ are: .RS \fB\-shiftrelief\fP specifies how far the button contents are shifted down and right in the \fIpressed\fP state. -This action provides additional skeumorphic feedback. +This action provides additional skeuomorphic feedback. .RE \fB\-width\fP \fIamount\fP .PP |