![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::timefield - Create and manipulate a time field widget
iwidgets::timefield pathName ?options?
itk::Widget <- iwidgets::LabeledWidget <- iwidgets::Timefield
background borderWidth cursor exportSelection foreground highlightColor highlightThickness insertBackground
options.
inherited options.
e, or w. The default is e.
key press event.
abled. If the timefield is disabled then input is not accepted.
may be given in any of the forms acceptable to Tk_GetFont. _________________________________________________________________
widget for the purpose of time entry with various degrees of built-in intelligence.
name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::timefield 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::timefield command.
pathName get ?format?
string or as an integer clock value using the -string and
-clicks format options respectively. The default is by
string. Refer- ence the clock command for more information on
obtaining times and their formats.
pathName isvalid
displayed time value. For example, 12:59:59 is valid whereas
25:59:59 is invalid.
pathName show time
ment. The time may be specified either as a string, an integer clock value or the keyword «now» (the default). Reference the clock command for more information on obtaining times and their formats.
display. See the «entry» widget manual entry for details on the time component item.
package require Iwidgets 4.0
proc returnCmd {} {
puts [.tf get]
}
iwidgets::timefield .tf -command returnCmd
pack .tf -fill x -expand yes -padx 10 -pady 10
timefield, widget