OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [pushbutton.n] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1995 DSC Technologies Corporation
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" @(#) pushbutton.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS pushbutton iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
pushbutton \- Create and manipulate a push button widget
15
.SH SYNOPSIS
16
\fBpushbutton\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Widget <- pushbutton
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBactiveBackground\fR  \fBactiveForeground\fR  \fBbackground\fR        \fBbitmap\fR
24
\fBborderWidth\fR       \fBcommand\fR   \fBcursor\fR    \fBdisabledForeground\fR
25
\fBfont\fR      \fBforeground\fR        \fBhighlightBackground\fR       \fBhighlightColor\fR
26
\fBhighlightThickness\fR        \fBimage\fR     \fBpadX\fR      \fBpadY\fR
27
\fBstate\fR     \fBtext\fR      \fBunderline\fR \fBwrapLength\fR
28
.fi
29
.LP
30
See the "options" manual entry for details on the standard options.
31
.SH "WIDGET-SPECIFIC OPTIONS"
32
.LP
33
.nf
34
Name:   \fBdefaultRing\fR
35
Class:  \fBDefaultRing\fR
36
Command-Line Switch:    \fB-defaultring\fR
37
.fi
38
.IP
39
Boolean describing whether the button displays its default ring given in
40
any of the forms acceptable to \fBTcl_GetBoolean\fR.  The default is false.
41
.LP
42
.nf
43
Name:   \fBdefaultRingPad\fR
44
Class:  \fBPad\fR
45
Command-Line Switch:    \fB-defaultringpad\fR
46
.fi
47
.IP
48
Specifies the amount of space to be allocated to the indentation of the
49
default ring ring given in any of the forms acceptable to \fBTcl_GetPixels\fR.
50
The option has no effect if the defaultring option is set to false.  The
51
default is 2 pixels.
52
.LP
53
.nf
54
Name:   \fBheight\fR
55
Class:  \fBHeight\fR
56
Command-Line Switch:    \fB-height\fR
57
.fi
58
.IP
59
Specifies the height of the button inclusive of any default ring given in
60
any of the forms acceptable to \fBTk_GetPixels\fR.  A value of zero lets
61
the push button determine the height based on the requested height plus
62
highlightring and defaultringpad.
63
.LP
64
.nf
65
Name:   \fBwidth\fR
66
Class:  \fBWidth\fR
67
Command-Line Switch:    \fB-width\fR
68
.fi
69
.IP
70
Specifies the width of the button inclusive of any default ring given in
71
any of the forms acceptable to \fBTk_GetPixels\fR.  A value of zero lets
72
the push button determine the width based on the requested width plus
73
highlightring and defaultringpad.
74
.LP
75
.BE
76
 
77
.SH DESCRIPTION
78
.PP
79
The \fBpushbutton\fR command creates a push button with an
80
optional default ring used for default designation and traversal.
81
 
82
.SH "METHODS"
83
.PP
84
The \fBpushbutton\fR command creates a new Tcl command whose
85
name is \fIpathName\fR.  This
86
command may be used to invoke various
87
operations on the widget.  It has the following general form:
88
.DS C
89
\fIpathName option \fR?\fIarg arg ...\fR?
90
.DE
91
\fIOption\fR and the \fIarg\fRs
92
determine the exact behavior of the command.  The following
93
commands are possible for pushbutton widgets:
94
.SH "ASSOCIATED METHODS"
95
.LP
96
.nf
97
.ta 4c 8c 12c
98
\fBflash\fR     \fBinvoke\fR
99
.fi
100
.LP
101
See the "button" manual entry for details on the associated methods.
102
 
103
.SH "WIDGET-SPECIFIC METHODS"
104
.TP
105
\fIpathName \fBcget\fR \fIoption\fR
106
Returns the current value of the configuration option given
107
by \fIoption\fR.
108
\fIOption\fR may have any of the values accepted by the \fBpushbutton\fR
109
command.
110
.TP
111
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
112
Query or modify the configuration options of the widget.
113
If no \fIoption\fR is specified, returns a list describing all of
114
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
115
information on the format of this list).  If \fIoption\fR is specified
116
with no \fIvalue\fR, then the command returns a list describing the
117
one named option (this list will be identical to the corresponding
118
sublist of the value returned if no \fIoption\fR is specified).  If
119
one or more \fIoption\-value\fR pairs are specified, then the command
120
modifies the given widget option(s) to have the given value(s);  in
121
this case the command returns an empty string.
122
\fIOption\fR may have any of the values accepted by the \fBpushbutton\fR
123
command.
124
 
125
.SH "COMPONENTS"
126
.LP
127
.nf
128
Name:   \fBpushbutton\fR
129
Class:  \fBButton\fR
130
.fi
131
.IP
132
The pushbutton component is the button surrounded by the optional default ring.
133
See the "button" widget manual entry for details on the pushbutton
134
component item.
135
.fi
136
 
137
.SH EXAMPLE
138
.DS
139
pushbutton .pb -text "Hello" -command {puts "Hello World"} -defaultring 1
140
pack .pb -padx 10 -pady 10
141
.DE
142
.SH AUTHOR
143
Bret A. Schuhmacher
144
.DE
145
Mark L. Ulferts
146
.SH KEYWORDS
147
pushbutton, widget

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.