datefield - Create and manipulate a date field widget

SYNOPSIS

datefield pathName ?options?

INHERITANCE

itk::Widget <- LabeledWidget <- datefield

STANDARD OPTIONS

background
foreground
justify
borderWidth
highlightColor
relief
cursor
highlightThickness
exportSelection
insertBackground

See the "options" manual entry for details on the standard options.

INHERITED OPTIONS

disabledForeground
labelMargin
state
labelBitmap
labelPos
labelFont
labelText
labelImage
labelVariable

See the "labeledwidget" class manual entry for details on the inherited options.

WIDGET-SPECIFIC OPTIONS

Name:                   childSitePos
Class:                  Position
Command-Line Switch:	-childsitepos

Name:                   command
Class:                  Command
Command-Line Switch:	-command

Name:                   gmt
Class:                  GMT
Command-Line Switch:	-gmt

Name:                   int
Class:                  DateFormat
Command-Line Switch:	-int

Name:                   iq
Class:                  Iq
Command-Line Switch:	-iq

Name:                   state
Class:                  State
Command-Line Switch:	-state

Name:                   textBackground
Class:                  Background
Command-Line Switch:	-textbackground

Name:                   textFont
Class:                  Font
Command-Line Switch:	-textfont


DESCRIPTION

The datefield command creates an enhanced text entry widget for the purpose of date entry with various degrees of built-in intelligence.

METHODS

The datefield command creates a new Tcl command whose 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 ...?
Option and the args determine the exact behavior of the command. The following commands are possible for datefield widgets:

WIDGET-SPECIFIC METHODS

pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the datefield command.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available 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 datefield command.
pathName get ?format?
Returns the current contents of the datefield in a format of string or as an integer clock value using the -string and -clicks format options respectively. The default is by string. Reference the clock command for more information on obtaining dates and their formats.
pathName isvalid
Returns a boolean indication of the validity of the currently displayed date value. For example, 03/03/1960 is valid whereas 02/29/1997 is invalid.
pathName show date
Changes the currently displayed date to be that of the date argument. 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.

COMPONENTS

Name:                   date
Class:                  Entry

EXAMPLE

 proc returnCmd {} {
   puts [.df get]
 }

 datefield .df -command returnCmd
 pack .df -fill x -expand yes -padx 10 -pady 10

AUTHOR

Mark L. Ulferts

KEYWORDS

datefield, widget