This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




datefield(n)                                 Tk datefield widget                                datefield(n)



____________________________________________________________________________________________________________

NAME
       datefield - Tk datefield widget

SYNOPSIS
       package require Tk

       package require datefield  ?0.2?

       ::datefield::datefield widgetpath ?options?

____________________________________________________________________________________________________________

DESCRIPTION
       The  datefield  package  provides the datefield widget which is an enhanced text entry widget for the
       purpose of date entry. Only valid dates of the form MM/DD/YYYY can be entered.

       The datefield widget is, in fact, just an entry widget with specialized bindings. This means all  the
       command and options for an entry widget apply equally here.

COMMANDS
       ::datefield::datefield widgetpath ?options?
              Creates and configures a date field widget.


OPTIONS
       See the entry manual entry for details on all available options.

EXAMPLE
        package require datefield

        wm title . "Datefield example"
        proc DayOfWeek {args} {
            set now [clock scan $::myDate]
            set ::myDate2 [clock format $now -format %A]
        }
        trace variable myDate w DayOfWeek

        ::datefield::datefield .df -textvariable myDate
        label .l1 -text "Enter a date:"   -anchor e
        label .l2 -text "That date is a:" -anchor e
        label .l3 -textvariable myDate2 -relief sunken -width 12

        grid .l1 .df -sticky ew
        grid .l2 .l3 -sticky ew
        focus .df


SEE ALSO
       clock(n), entry(n)

KEYWORDS
       clock, entry, widget

COPYRIGHT
       Copyright (c) Keith Vetter <keith@ebook.gemstar.com>




datefield                                            0.2                                        datefield(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Tk project.
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Tk project through their bug reporting page.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...