![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::spindate - Create and manipulate time spinner widgets
iwidgets::spindate pathName ?options?
itk::Widget <- iwidgets::Spindate
background cursor foreground relief
options.
textBackground textFont
ciated options.
associated options.
arrowOrient repeatDelay repeatInterval
ated options.
ners is any of the forms accpetable to Tcl_GetPixels. The
default is 1 pixel.
is «Day".
forms acceptable to Tcl_GetBoolean. The default is true.
acceptable to Tcl_GetPixels. The default is 3 pixels.
ous spinners: n, e, s, or w. The default is w.
strings (Jan - Dec), or full strings (January - December).
default is «Month".
the forms acceptable to Tcl_GetBoolean. The default is true.
acceptable to Tcl_GetPixels. The default is 3 pixels.
vertical or horizontal. The default is horizontal.
the year spinner. The valid values are 2 and 4. The default is
2.
default is «Year"
the forms acceptable to Tcl_GetBoolean. The default is true.
acceptable to Tcl_GetPixels. The default is 3 pixels. _________________________________________________________________
in date value entry. The set includes an month, day, and year spinner widget.
name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::spindate command.
pathName configure ?option? ?value
option value ...?
option is specified, returns a list describing all of the
avail- able options for pathName (see
Tk_ConfigureInfo for information on the format of this
list). If option is specified with no value, then the
command returns a list describing the one named option (this list
will be identical to the corresponding sublist of the value
returned if no option is specified). If one or more
option-value pairs are specified, then the command modifies
the given widget option(s) to have the given value(s); in this case
the command returns an empty string. Option may have any of
the values accepted by the iwidgets::spindate command.
pathName get ?format?
of string or as an integer clock value using the -string and -clicks format options respectively. The default is by string.
dates and their formats.
pathName show date
ment. The date may be specified either as a string, an integer clock value or the keyword «now". Reference the clock command for more information on obtaining dates and their formats.
spinner. See the Spinner widget manual entry for details on the
month component item.
nent item.
ner. See the SpinInt widget manual entry fordetails on the year component item.
package require Iwidgets 4.0
iwidgets::spindate .sd
pack .sd -padx 10 -pady 10
spindate, spinint, spinner, entryfield, entry, widget