IupCalendar

Definition: include pGUI.e

Ihandle ih = IupCalendar([[nullable_string action=NULL,] cbfunc func=NULL,] string attributes="", sequence data={})
Description: Creates a month calendar interface element, where the user can select a date.

GTK and Windows only. NOT available in Motif.

action: name of the action generated when the value is changed. It can be NULL(/omitted), which is replaced with VALUECHANGED_CB.
func: a callback address, usually specified as Icallback("name").
For more information on the attributes and data parameters see IupSetAttributes.
This is a paranormalised function.

Returns: the identifier of the created element.
Notes: In Windows, the view is changed when the month or year is clicked, so the user can select the month of the year or a year among years.
In GTK today’ date is not marked in the calendar.
Attributes:
TODAY (read-only) Returns the date corresponding to today in VALUE format.
VALUE the current date always in the format year/month/day. Can be set to "TODAY". Default value is today’ date.
WEEKNUMBERS Shows the number of the week along the year. Default: NO.
Callbacks:
VALUECHANGED_CB Called after the value was interactively changed by the user.

function valuechanged_cb(Ihandle ih)
ih: identifier of the element that activated the event.
also MAP_CB, UNMAP_CB, DESTROY_CB, GETFOCUS_CB, KILLFOCUS_CB, ENTERWINDOW_CB, LEAVEWINDOW_CB, K_ANY, HELP_CB: All common callbacks are supported.
Examples:
Windows Classic Windows w/styles GTK
For a runnable example, see demo\pGUI\calendar.exw
See Also: IupDatePick