| Itcl  | Itk  | Itcl @ Wiki  | Itcl @ SF  | Tcl  | Tcl @ Wiki |
  home || iwidgets || man pages cross ref distribution docs faq  
buttonbox
calendar
canvasprintbox
canvasprintdialog
checkbox
combobox
dateentry
datefield
dialog
dialogshell
disjointlistbox
entryfield
extbutton
extfileselectionbox
extfileselectiondialog
feedback
fileselectionbox
fileselectiondialog
finddialog
hierarchy
hyperhelp
labeledframe
labeledwidget
mainwindow
menubar
messagebox
messagedialog
notebook
optionmenu
panedwindow
promptdialog
pushbutton
radiobox
regexpfield
scrolledcanvas
scrolledframe
scrolledhtml
scrolledlistbox
scrolledtext
scrolledwidget
selectionbox
selectiondialog
shell
spindate
spinint
spinner
spintime
tabnotebook
tabset
timeentry
timefield
toolbar
watch

man page | options | methods

Dateentry

The Dateentry iwidget allows the user to enter dates either by selecting a date from a pop-up calendar or by using the keyboard to type in the date. The up and down arrows can also be used to scroll through the dates when the focus is in the entry. This widget is a combination of the datefield and calendar widgets. There are 2 options associated with this widget in particular: -grab and -icon. Use -grab when you want to specify either local or global grab. Use the -icon option to specify a different icon to use instead of the default. The default date that is shown in the datefield widget is today's date. For further information, see the Dateentry manpage

Components: date hull iconbutton label
				

wm title . "Dateentry Example"

##=========================================================
##	Create a few dateentry iwidgets
##=========================================================
##
iwidgets::dateentry .birth \
  -labeltext "Birthday:" \
  -outline black \
  -weekendbackground "#CCCCCC" \
  -startday monday \
  -days "M T W T F S S"

iwidgets::dateentry .ann \
  -labeltext "Anniversary:" \
  -outline black \
  -weekendbackground "#CCCCCC" \
  -startday monday \
  -days "M T W T F S S"

iwidgets::dateentry .today \
  -labeltext "Today:" \
  -outline black \
  -weekendbackground "#CCCCCC" \
  -startday monday \
  -days "M T W T F S S"

pack .birth .ann .today

iwidgets::Labeledwidget::alignlabels .birth .ann .today

##
##	Show an initial date
##
.birth show 1/1/2000
.ann show 1/1/2000

Download this sample code
man page | options | methods
 
  home || iwidgets || man pages cross ref distribution docs faq  
Copyright | Contributions | Development Team | Credits
Bugs/Comments/Suggestions about this web site