2 '\" Copyright (c) 1995 DSC Technologies Corporation
4 '\" See the file "license.terms" for information on usage and redistribution
5 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10 .HS iwidgets::spintime iwid
12 '\" Note: do not modify the .SH NAME line immediately below!
14 iwidgets::spintime \- Create and manipulate time spinner widgets
16 \fBiwidgets::spintime\fI \fIpathName \fR?\fIoptions\fR?
18 itk::Widget <- iwidgets::Spintime
20 .SH "STANDARD OPTIONS"
24 \fBbackground\fR \fBcursor\fR \fBforeground\fR \fBrelief\fR
27 See the "options" manual entry for details on the standard options.
28 .SH "ASSOCIATED OPTIONS"
32 \fBtextBackground\fR \fBtextFont\fR
35 See the "entryfield" manual entry for details on the above associated options.
39 \fBlabelFont\fR \fBlabelMargin\fR
42 See the "labeledwidget" manual entry for details on the above associated
47 \fBarrowOrient\fR \fBrepeatDelay\fR \fBrepeatInterval\fR
50 See the "spinner" manual entry for details on the above associated options.
52 .SH "WIDGET-SPECIFIC OPTIONS"
57 Command-Line Switch: \fB-labelpos\fR
60 Specifies the position of the label along the sides of the various
61 spinners: \fBn\fR, \fBe\fR, \fBs\fR, or \fBw\fR. The default is w.
66 Command-Line Switch: \fB-hourlabel\fR
69 Specifies the text of the label for the hour spinner. The default is "Hour".
74 Command-Line Switch: \fB-houron\fR
77 Specifies whether or not to display the hour spinner in any of the forms
78 acceptable to \fBTcl_GetBoolean\fR. The default is true.
83 Command-Line Switch: \fB-hourwidth\fR
86 Specifies the width of the hour spinner in any of the forms acceptable to
87 \fBTcl_GetPixels\fR. The default is 3 pixels.
90 Name: \fBmilitaryOn\fR
91 Class: \fBmilitaryOn\fR
92 Command-Line Switch: \fB-militaryon\fR
95 Specifies use of a 24 hour clock for hour display in any of the forms
96 acceptable to \fBTcl_GetBoolean\fR. The default is true.
99 Name: \fBminuteLabel\fR
101 Command-Line Switch: \fB-minutelabel\fR
104 Specifies the text of the label for the minute spinner. The default is
109 Class: \fBminuteOn\fR
110 Command-Line Switch: \fB-minuteon\fR
113 Specifies whether or not to display the minute spinner in any of the forms
114 acceptable to \fBTcl_GetBoolean\fR. The default is true.
117 Name: \fBminuteWidth\fR
119 Command-Line Switch: \fB-minutewidth\fR
122 Specifies the width of the minute spinner in any of the forms acceptable to
123 \fBTcl_GetPixels\fR. The default is 3 pixels.
128 Command-Line Switch: \fB-orient\fR
131 Specifies the orientation of the hour, minute, and second spinners: \fBvertical\fR or \fBhorizontal\fR. The default is horizontal.
134 Name: \fBsecondLabel\fR
136 Command-Line Switch: \fB-secondlabel\fR
139 Specifies the text of the label for the second spinner. The default is
144 Class: \fBsecondOn\fR
145 Command-Line Switch: \fB-secondon\fR
148 Specifies whether or not to display the second spinner in any of the forms
149 acceptable to \fBTcl_GetBoolean\fR. The default is true.
152 Name: \fBsecondWidth\fR
154 Command-Line Switch: \fB-secondwidth\fR
157 Specifies the width of the second spinner in any of the forms acceptable to
158 \fBTcl_GetPixels\fR. The default is 3 pixels.
161 Name: \fBtimeMargin\fR
163 Command-Line Switch: \fB-timemargin\fR
166 Specifies the margin space between the hour, minute, and second spinners is
167 any of the forms accpetable to \fBTcl_GetPixels\fR. The default is 1 pixel.
175 The \fBiwidgets::spintime\fR command creates a set of spinners for use in time value
176 entry. The set includes an hour, minute, and second spinner widget.
180 The \fBiwidgets::spintime\fR command creates a new Tcl command whose
181 name is \fIpathName\fR. This
182 command may be used to invoke various
183 operations on the widget. It has the following general form:
185 \fIpathName option \fR?\fIarg arg ...\fR?
187 \fIOption\fR and the \fIarg\fRs
188 determine the exact behavior of the command. The following
189 commands are possible for spintime widgets:
191 .SH "WIDGET-SPECIFIC METHODS"
193 \fIpathName \fBcget\fR \fIoption\fR
194 Returns the current value of the configuration option given
196 \fIOption\fR may have any of the values accepted by the \fBiwidgets::spintime\fR
199 \fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
200 Query or modify the configuration options of the widget.
201 If no \fIoption\fR is specified, returns a list describing all of
202 the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
203 information on the format of this list). If \fIoption\fR is specified
204 with no \fIvalue\fR, then the command returns a list describing the
205 one named option (this list will be identical to the corresponding
206 sublist of the value returned if no \fIoption\fR is specified). If
207 one or more \fIoption\-value\fR pairs are specified, then the command
208 modifies the given widget option(s) to have the given value(s); in
209 this case the command returns an empty string.
210 \fIOption\fR may have any of the values accepted by the \fBiwidgets::spintime\fR
213 \fIpathName \fBget\fR ?\fBformat\fR?
214 Returns the current contents of the spintime widget in a format of
215 string or as an integer clock value using the \fB-string\fR and \fB-clicks\fR
216 format options respectively. The default is by string. Reference the
217 clock command for more information on obtaining time and its
220 \fIpathName \fBshow\fR \fItime\fR
221 Changes the currently displayed time to be that of the time
222 argument. The time may be specified either as a string, an
223 integer clock value or the keyword "now". Reference the clock
224 command for more information on obtaining times and its format.
234 The hour component is the hour spinner of the time spinner. See the
235 SpinInt widget manual entry for details on the hour component item.
242 The minute component is the minute spinner of the time spinner. See
243 the SpinInt widget manual entry for details on the minute component item.
250 The second component is the second spinner of the time spinner. See the
251 SpinInt widget manual entry for details on the second component item.
256 package require Iwidgets 4.0
257 iwidgets::spintime .st
258 pack .st -padx 10 -pady 10
265 spintime, spinint, spinner, entryfield, entry, widget