NAME
Calendar - Calendar view by month to return selected date(s)
CREATION
Calendar pathName ?option value...?
OPTIONS from Dialog
  -background or -bg
  -parent
  -title
WIDGET-SPECIFIC OPTIONS
  -backwardimage
  -buttonnames
  -currentdatefont
  -datefont
  -daybackground
  -dayfont
  -days
  -foreground
  -forwardimage
  -height
  -highlightdaybackground
  -highlightdaycolor
  -highlightdaythickness
  -highlightshowdate
  -months
  -multipleselection
  -selectdates
  -selectthickness
  -showdate
  -startday
  -titlefont
  -type
  -weekdaybackground
  -weekendbackground
  -width
WIDGET COMMAND
none



DESCRIPTION

Calendar widget enables the user to create a monthly Calendar box. The selected date(s) are returned when the widget is destroyed. The widget is basically a Dialog, and it can be embedded in an existing frame (returning the variable name for the date selection). It can be operated as a popup to allow for selecting just one date.




WIDGET-SPECIFIC OPTIONS
-backwardimage
Specifies an image name to display instead of a less-than sign for selecting previous months.
-buttonnames
Specifies a list of two strings (label's text) for the both buttons 'OK' and 'Cancel' (in that order) for other languages than English. Defaults to "OK Cancel"
-currentdatefont
Specifies a font to use for the -showdate.
-datefont
Specifies a font to use for days other than the current day.
-daybackground
Specifies a background to use for the colors of the days of the week.
-dayfont
Specifies a font to use for the names of the days of the week.
-days
Specifies a string of whitespace separated abbreviations (list) to use for the days of the week, starting with Sunday. Defaults to "Su Mo Tu We Th Fr Sa"
-foreground
Specifies a foreground color to use for the buttons that make up the days of the month.
-forwardimage
Specifies an image name to display instead of a greater-than sign for selecting previous months.
-height
Specifies the height of the Calendar window.
-highlightdaybackground
Specifies the color to highlight the background of a selected day.
-highlightdaycolor
Specifies the color to highlight the edges of a selected day.
-highlightdaythickness
Specifies the thickness of the highlight around a selected day.
-highlightshowdate
Specifies the color to highlight the edges of a date to show, either today or the date specified by -showdate.
-months
Specifies a list of 12 strings (text) for the names of the months of a year, starting with January, for other languages than English. Defaults to "January February March April May June July August September October November December"
-multipleselection
Specifies whether or not to allow selecting multiple dates. When the value is 0, mutlipleselection is off and only single selection is allowed. When it is 1, multiple selection is on and allows infinite date selection. Any other value, N, will allow for N selections before returning automatically. Defaults to 1.
-selectdates
Specifies a list of pre-selected dates to appear as selected in the Calendar, comma or whitespace separated in any proper Tcl date format.
-selectthickness
Specifies the border width to use for selected dates. Defaults to 3.
-showdate
Specifies the date to use as the current date for display. Defaults to today.
-startday
Specifies the name of the day to place in the first column, in effect, what day to start the week on. Can be sunday, monday, tuesday, wednesday, thursday, friday, saturday. Defaults to sunday.
-titlefont
Specifies font to use for the month, year, and also possibly the previous/next month selectors if no image is defined by -backwardimage or -forwardimage.
-type
Type of the widget, either the default dialog, a popup or embedded. The popup will return immediately after selecting just one date. The embedded will also return immediately after creating the widget, returning the value name for the use of getting the result.
-weekdaybackground
Specifies the color to use as the background for the weekdays.
-weekendbackground
Specifies the color to use as the background for the weekends.
-width
Specifies the width of Calendar.
Copyright © 2004 Chris Maj
Copyright © 2025 Th. Wunderlich