Home  /  Autodocs

datebrowser.gadget

Monthly calendar gadget

FUNCTIONS

DATEBROWSER_GetClass JulianLeapYear JulianMonthDays JulianWeekDay

SUPERCLASS

gadgetclass

DESCRIPTION

The datebrowser gadget class is used to display a month-based array of days in the visual style of traditional calendarss.

ATTRIBUTES

GA_Disabled (BOOL)
Determines whether the datebrowser is disabled or not. Changing disable state will invoke GM_RENDER. A disabled datebrowser's border and label are all rendered in SHADOWPEN and then dusted in a ghosting pattern that is rendered in SHADOWPEN. Defaults to FALSE.

GA_TextAttr (struct TextAttr *)
Text attribute for the font to use for the labels.

GA_ReadOnly (BOOL)
Indicate whether datebrowser has selectable days or is for display only. Defaults to FALSE (selectable days).

DATEBROWSER_Day (UWORD)
Set the current day of the month. Defaults to 1. Applicability is (OM_NEW,OM_SET,OM_UPDATE,OM_GET).

DATEBROWSER_Month (UWORD)
Set the current month of the year. Defaults to 1. Applicability is (OM_NEW,OM_SET,OM_UPDATE,OM_GET).

DATEBROWSER_Year (LONG)
Calendar year to display. Defaults to 1978. Applicability is (OM_NEW,OM_SET,OM_UPDATE,OM_GET).

DATEBROWSER_SelectedDays (ULONG)
A 32 bit value, each bit represents a day of the month. If set, the corresponding calendar day is selected. This is useful for multi-select mode to find out what days are selected via one packed value. Applicability is (OM_NEW,OM_SET,OM_UPDATE,OM_GET).

DATEBROWSER_FirstWDay (LONG)
Gets the first day of the week. 0 is Sunday. Applicability is (OM_GET).

DATEBROWSER_NumDays (UWORD)
Returns the number of days in the currently set month. A better solution may be using datebrowser's public julian date functions. Applicability is (OM_GET).

DATEBROWSER_WeekDay (UWORD)
Returns the day of the week for the currently selected 'DATEBROWSER_Day'. A better solution may be using datebrowser's public julian date functions. Applicability is (OM_GET).

DATEBROWSER_ShowTitle (BOOL)
Enables display of the week-day title bar. NOTE: If turned on after layout group creation, you must be sure to FlushLayoutDomainCache() and RethinkDisplay(), and potentionally increase the window size to accomodate the possibly larger layout. Simply toggling iconify on/off, or close & open of the window class will archieve similiar results. Applicability is (OM_NEW,OM_SET).

DATEBROWSR_MultiSelect (BOOL)
Enables multi-selection of calendar days. Applicability is (OM_NEW,OM_SET).

DATEBROWSER_DayTitles (STRPTR *)
Pointer to an array of STRPTR containing day titles. Defaults to non-localized internal "Mon", "Tue", etc., if locale.library cannot be opened. Applicability is (OM_NEW,OM_SET,OM_UPDATE,OM_GET).

NOTES

Relative support requires V39 and beyond of Intuition.