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.
12 '\" Note: do not modify the .SH NAME line immediately below!
14 spindate \- Create and manipulate time spinner widgets
16 \fBspindate\fI \fIpathName \fR?\fIoptions\fR?
18 itk::Widget <- Spindate
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"
55 Name: \fBdateMargin\fR
57 Command-Line Switch: \fB-datemargin\fR
60 Specifies the margin space between the month, day, and year spinners is
61 any of the forms accpetable to \fBTcl_GetPixels\fR. The default is 1 pixel.
66 Command-Line Switch: \fB-daylabel\fR
69 Specifies the text of the label for the day spinner. The default is
75 Command-Line Switch: \fB-dayon\fR
78 Specifies whether or not to display the day spinner in any of the forms
79 acceptable to \fBTcl_GetBoolean\fR. The default is true.
84 Command-Line Switch: \fB-daywidth\fR
87 Specifies the width of the day spinner in any of the forms acceptable to
88 \fBTcl_GetPixels\fR. The default is 3 pixels.
93 Command-Line Switch: \fB-labelpos\fR
96 Specifies the position of the label along the sides of the various
97 spinners: \fBn\fR, \fBe\fR, \fBs\fR, or \fBw\fR. The default is w.
100 Name: \fBmonthFormat\fR
101 Class: \fBMonthFormat\fR
102 Command-Line Switch: \fB-monthformat\fR
105 Specifies the format of month display, \fBinteger\fR (1-12) or \fBbrief\fR
106 strings (Jan - Dec), or \fBfull\fR strings (January - December).
109 Name: \fBmonthLabel\fR
111 Command-Line Switch: \fB-monthlabel\fR
114 Specifies the text of the label for the month spinner. The default is "Month".
119 Command-Line Switch: \fB-monthon\fR
122 Specifies whether or not to display the month spinner in any of the forms
123 acceptable to \fBTcl_GetBoolean\fR. The default is true.
126 Name: \fBmonthWidth\fR
128 Command-Line Switch: \fB-monthwidth\fR
131 Specifies the width of the month spinner in any of the forms acceptable to
132 \fBTcl_GetPixels\fR. The default is 3 pixels.
137 Command-Line Switch: \fB-orient\fR
140 Specifies the orientation of the month, day, and year spinners: \fBvertical\fR or \fBhorizontal\fR. The default is horizontal.
143 Name: \fByearDigits\fR
144 Class: \fBYearDigits\fR
145 Command-Line Switch: \fB-yeardigits\fR
148 Specifies the number of digits to be displayed as the value for the year
149 spinner. The valid values are 2 and 4. The default is 2.
152 Name: \fByearLabel\fR
154 Command-Line Switch: \fB-yearlabel\fR
157 Specifies the text of the label for the year spinner. The default is
163 Command-Line Switch: \fB-yearon\fR
166 Specifies whether or not to display the year spinner in any of the forms
167 acceptable to \fBTcl_GetBoolean\fR. The default is true.
170 Name: \fByearWidth\fR
172 Command-Line Switch: \fB-yearwidth\fR
175 Specifies the width of the year spinner in any of the forms acceptable to
176 \fBTcl_GetPixels\fR. The default is 3 pixels.
184 The \fBspindate\fR command creates a set of spinners for use in date value
185 entry. The set includes an month, day, and year spinner widget.
189 The \fBspindate\fR command creates a new Tcl command whose
190 name is \fIpathName\fR. This
191 command may be used to invoke various
192 operations on the widget. It has the following general form:
194 \fIpathName option \fR?\fIarg arg ...\fR?
196 \fIOption\fR and the \fIarg\fRs
197 determine the exact behavior of the command. The following
198 commands are possible for spindate widgets:
200 .SH "WIDGET-SPECIFIC METHODS"
202 \fIpathName \fBcget\fR \fIoption\fR
203 Returns the current value of the configuration option given
205 \fIOption\fR may have any of the values accepted by the \fBspindate\fR
208 \fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
209 Query or modify the configuration options of the widget.
210 If no \fIoption\fR is specified, returns a list describing all of
211 the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
212 information on the format of this list). If \fIoption\fR is specified
213 with no \fIvalue\fR, then the command returns a list describing the
214 one named option (this list will be identical to the corresponding
215 sublist of the value returned if no \fIoption\fR is specified). If
216 one or more \fIoption\-value\fR pairs are specified, then the command
217 modifies the given widget option(s) to have the given value(s); in
218 this case the command returns an empty string.
219 \fIOption\fR may have any of the values accepted by the \fBspindate\fR
222 \fIpathName \fBget\fR ?\fBformat\fR?
223 Returns the current contents of the spindate widget in a format of
224 string or as an integer clock value using the \fB-string\fR and \fB-clicks\fR
225 format options respectively. The default is by string. Reference the
226 clock command for more information on obtaining dates and their
229 \fIpathName \fBshow\fR \fIdate\fR
230 Changes the currently displayed date to be that of the date
231 argument. The date may be specified either as a string, an
232 integer clock value or the keyword "now". Reference the clock
233 command for more information on obtaining dates and their formats.
243 The month spinner component is the month spinner of the date spinner.
244 See the Spinner widget manual entry for details on the month component item.
251 The day spinner component is the day spinner of the date spinner.
252 See the SpinInt widget manual entry for details on the day component item.
259 The year spinner component is the year spinner of the date spinner.
260 See the SpinInt widget manual entry for details on the year component item.
266 pack .sd -padx 10 -pady 10
273 spindate, spinint, spinner, entryfield, entry, widget