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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [spinint.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
'\" @(#) spinint.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS spinint iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
spinint \- Create and manipulate a integer spinner widget
15
.SH SYNOPSIS
16
\fBspinint\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Widget <- Labeledwidget <- Spinner <- Spinint
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBbackground\fR        \fBborderWidth\fR       \fBcursor\fR    \fBexportSelection\fR
24
\fBforeground\fR        \fBhighlightColor\fR    \fBhighlightThickness\fR        \fBinsertBackground\fR
25
\fBinsertBorderWidth\fR \fBinsertOffTime\fR     \fBinsertOnTime\fR      \fBinsertWidth\fR
26
\fBjustify\fR   \fBrelief\fR    \fBselectBackground\fR  \fBselectBorderWidth\fR
27
\fBselectForeground\fR  \fBtextVariable\fR
28
.fi
29
.LP
30
See the "options" manual entry for details on the standard options.
31
.SH "ASSOCIATED OPTIONS"
32
.LP
33
.nf
34
.ta 4c 8c 12c
35
\fBshow\fR      \fBstate\fR
36
.fi
37
.LP
38
See the "entry" manual entry for details on the associated options.
39
.SH "INHERITED OPTIONS"
40
.LP
41
.nf
42
.ta 4c 8c 12c
43
\fBcommand\fR   \fBchildSitePos\fR      \fBfixed\fR     \fBfocusCommand\fR
44
\fBinvalid\fR   \fBtextBackground\fR    \fBtextFont\fR  \fBvalidate\fR
45
\fBwidth\fR
46
.fi
47
.LP
48
See the "entryfield" widget manual entry for details on the above
49
inherited options.
50
.LP
51
.nf
52
.ta 4c 8c 12c
53
\fBdisabledForeground\fR        \fBlabelBitmap\fR       \fBlabelFont\fR \fBlabelImage\fR
54
\fBlabelMargin\fR       \fBlabelPos\fR  \fBlabelText\fR \fBlabelVariable\fR
55
\fBstate\fR
56
.fi
57
.LP
58
See the "labeledwidget" widget manual entry for details on the above
59
inherited options.
60
.LP
61
.nf
62
.ta 4c 8c 12c
63
\fBarroworient\fR       \fBdecrement\fR \fBincrement\fR \fBrepeatDelay\fR
64
\fBrepeatInterval\fR
65
.fi
66
.LP
67
See the "spinner" widget manual entry for details on the above
68
inherited options.
69
 
70
.SH "WIDGET-SPECIFIC OPTIONS"
71
.LP
72
.nf
73
Name:   \fBrange\fR
74
Class:  \fBRange\fR
75
Command-Line Switch:    \fB-range\fR
76
.fi
77
.IP
78
Specifies a two element list of minimum and maximum integer values.  The
79
default is no range, {{} {}}.
80
.LP
81
.nf
82
Name:   \fBstep\fR
83
Class:  \fBStep\fR
84
Command-Line Switch:    \fB-step\fR
85
.fi
86
.IP
87
Specifies the increment/decrement value.  The default is 1.
88
.LP
89
.nf
90
Name:   \fBwrap\fR
91
Class:  \fBWrap\fR
92
Command-Line Switch:    \fB-wrap\fR
93
.fi
94
.IP
95
Specifies whether to wrap the spinner value upon reaching the minimum
96
or maximum value in any of the forms acceptable to \fBTcl_GetBoolean\fR.
97
The default is true.
98
.LP
99
.BE
100
 
101
.SH DESCRIPTION
102
.PP
103
The \fBspinint\fR command creates a spinint widget.  The spinint allows
104
"spinning" of integer values within a specified range with wrap support.
105
The spinner arrows may be drawn horizontally or vertically.
106
.DE
107
 
108
.SH "METHODS"
109
.PP
110
The \fBspinint\fR command creates a new Tcl command whose
111
name is \fIpathName\fR.  This
112
command may be used to invoke various
113
operations on the widget.  It has the following general form:
114
.DS C
115
\fIpathName option \fR?\fIarg arg ...\fR?
116
.DE
117
\fIOption\fR and the \fIarg\fRs
118
determine the exact behavior of the command.  The following
119
commands are possible for spinint widgets:
120
.SH "ASSOCIATED METHODS"
121
.LP
122
.nf
123
.ta 4c 8c 12c
124
\fBdelete\fR    \fBget\fR       \fBicursor\fR   \fBindex\fR
125
\fBinsert\fR    \fBpeek\fR      \fBscan\fR      \fBselection\fR
126
\fBxview\fR
127
.fi
128
.LP
129
See the "entry" manual entry for details on the associated methods.
130
.SH "INHERITED METHODS"
131
.LP
132
.nf
133
.ta 4c 8c 12c
134
\fBchildsite\fR \fBclear\fR
135
.fi
136
.LP
137
See the "entryfield" manual entry for details on the associated methods.
138
.SH "WIDGET-SPECIFIC METHODS"
139
.TP
140
\fIpathName \fBcget\fR \fIoption\fR
141
Returns the current value of the configuration option given
142
by \fIoption\fR.
143
\fIOption\fR may have any of the values accepted by the \fBspinint\fR
144
command.
145
.TP
146
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
147
Query or modify the configuration options of the widget.
148
If no \fIoption\fR is specified, returns a list describing all of
149
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
150
information on the format of this list).  If \fIoption\fR is specified
151
with no \fIvalue\fR, then the command returns a list describing the
152
one named option (this list will be identical to the corresponding
153
sublist of the value returned if no \fIoption\fR is specified).  If
154
one or more \fIoption\-value\fR pairs are specified, then the command
155
modifies the given widget option(s) to have the given value(s);  in
156
this case the command returns an empty string.
157
\fIOption\fR may have any of the values accepted by the \fBspinint\fR
158
command.
159
.TP
160
\fIpathName \fBdown\fR
161
Decrement the spinner value by the value given in the step option.
162
.TP
163
\fIpathName \fBup\fR
164
Increment the spinner value by the value given in the step option.
165
 
166
.SH "COMPONENTS"
167
.IP
168
See the "Spinner" widget manual entry for details on the integer spinner
169
component items.
170
 
171
.SH EXAMPLE
172
.DS
173
 option add *textBackground white
174
 
175
 spinint .si -labeltext "Temperature" -labelpos w \\
176
    -fixed yes -width 5 -range {32 212}
177
 
178
 pack .si -pady 10
179
.DE
180
.SH AUTHOR
181
Sue Yockey
182
.SH KEYWORDS
183
spinint, widget

powered by: WebSVN 2.1.0

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