Difference between revisions of "CalendarView"
From Jeremie Leroy - XOJO Controls Wiki
m (1 revision) |
|||
| Line 117: | Line 117: | ||
| + | ==Class Constants== | ||
| + | |||
| + | ===[[CalendarView.Style|Style]]=== | ||
| + | The following class constants are to be used to specify the Style to use with [[CalendarView.SetStyle|SetStyle]] function. | ||
| + | |||
| + | {| class="genericTable" | ||
| + | ! width=15% | Class Constant | ||
| + | ! width=55% | Description | ||
| + | |- | ||
| + | |StyleDefault | ||
| + | |The default style. | ||
| + | |- | ||
| + | |StyleICal | ||
| + | |Macintosh iCal style. | ||
| + | |- | ||
| + | |StyleGoogle | ||
| + | |Google Calendar style. | ||
| + | |- | ||
| + | |StyleDark | ||
| + | |A dark style (black, grey and green). | ||
| + | |- | ||
| + | |StyleOutlook2010 | ||
| + | |Office Outlook 2010 style. | ||
| + | |} | ||
| + | |- | ||
| + | | | ||
| + | | | ||
| + | |- | ||
| + | |===[[CalendarView.ViewType|ViewType]]=== | ||
| + | | | ||
| + | |- | ||
| + | |The following class constants are to be used with the ViewType property. | ||
| + | | | ||
| + | |- | ||
| + | | | ||
| + | | | ||
| + | |- | ||
| + | |<table width="15;55"> | ||
| + | | | ||
| + | |- | ||
| + | |Class Constant | ||
| + | |Description | ||
| + | |- | ||
| + | |TypePicker | ||
| + | |Displays a DatePicker. | ||
| + | |- | ||
| + | |TypeYear | ||
| + | |Displays a whole year. | ||
| + | |- | ||
| + | |TypeMonth | ||
| + | |Displays a Month calendar. | ||
| + | |- | ||
| + | |TypeWeek | ||
| + | |Displays a full week. | ||
| + | |- | ||
| + | |TypeDay | ||
| + | |Displays one day. | ||
| + | |- | ||
| + | |TypeOther | ||
| + | |Use the [[CalendarView.ViewDays|ViewDays]] property to set the amount of days to display. If ViewDays=5 days from Monday to Friday are displayed. | ||
| + | |} | ||
==History== | ==History== | ||
===Version 1.1 - Released 2012-05-02=== | ===Version 1.1 - Released 2012-05-02=== | ||
*New: | *New: | ||
| − | **TypePicker | + | **TypePicker constant |
**[[CalendarView.SelStart|SelStart]], [[CalendarView.SelEnd|SelEnd]] to set the selected dates in the CalendarPicker | **[[CalendarView.SelStart|SelStart]], [[CalendarView.SelEnd|SelEnd]] to set the selected dates in the CalendarPicker | ||
**[[CalendarView.DayStartHour|DayStartHour]], [[CalendarView.DayEndHour|DayEndHour]] | **[[CalendarView.DayStartHour|DayStartHour]], [[CalendarView.DayEndHour|DayEndHour]] | ||
| Line 185: | Line 246: | ||
===Version 1.0.0 - Released 2012-03-30=== | ===Version 1.0.0 - Released 2012-03-30=== | ||
First release | First release | ||
| − | == | + | ==Class Constants== |
| + | ===[[CalendarView.Style|Style]]=== | ||
| + | The following class constants are to be used to specify the Style to use with [[CalendarView.SetStyle|SetStyle]] function. | ||
| − | [[ | + | {| class="genericTable" |
| + | ! width=15% | Class Constant | ||
| + | ! width=55% | Description | ||
| + | |- | ||
| + | |StyleDefault | ||
| + | |The default style. | ||
| + | |- | ||
| + | |StyleICal | ||
| + | |Macintosh iCal style. | ||
| + | |- | ||
| + | |StyleGoogle | ||
| + | |Google Calendar style. | ||
| + | |- | ||
| + | |StyleDark | ||
| + | |A dark style (black, grey and green). | ||
| + | |- | ||
| + | |StyleOutlook2010 | ||
| + | |Office Outlook 2010 style. | ||
| + | |} | ||
| + | |- | ||
| + | | | ||
| + | | | ||
| + | |- | ||
| + | |===[[CalendarView.ViewType|ViewType]]=== | ||
| + | | | ||
| + | |- | ||
| + | |The following class constants are to be used with the ViewType property. | ||
| + | | | ||
| + | |- | ||
| + | | | ||
| + | | | ||
| + | |- | ||
| + | |<table width="15;55"> | ||
| + | | | ||
| + | |- | ||
| + | |Class Constant | ||
| + | |Description | ||
| + | |- | ||
| + | |TypePicker | ||
| + | |Displays a DatePicker. | ||
| + | |- | ||
| + | |TypeYear | ||
| + | |Displays a whole year. | ||
| + | |- | ||
| + | |TypeMonth | ||
| + | |Displays a Month calendar. | ||
| + | |- | ||
| + | |TypeWeek | ||
| + | |Displays a full week. | ||
| + | |- | ||
| + | |TypeDay | ||
| + | |Displays one day. | ||
| + | |- | ||
| + | |TypeOther | ||
| + | |Use the [[CalendarView.ViewDays|ViewDays]] property to set the amount of days to display. If ViewDays=5 days from Monday to Friday are displayed. | ||
| + | |} | ||
==See Also== | ==See Also== | ||
| + | Class. | ||
| + | [[CalendarEvent]] | ||
| + | ==See Also== | ||
| + | Class. | ||
[[CalendarEvent]] | [[CalendarEvent]] | ||
Revision as of 19:25, 6 May 2012
Displays a Calendar in several formats (Year, Month, Week, Day, ...) that presents CalendarEvents.
This custom control based on a Canvas is similar to iCal on Mac OS and Google Calendar.
| Events |
| ConstructContextualMenu |
| DateSelected |
| DragEvent |
| EditEvent |
| NewEvent |
| Open |
| ViewChange |
| Properties | ||
| AdaptWeeksPerMonth | FirstDate | SelEnd NEW 1.1.0 |
| Animate NEW 1.1.0 | FirstDayOfWeek | SelStart NEW 1.1.0 |
| Border | ForceAM_PM NEW 1.1.0 | Style |
| ColorWeekend | LastDate | ViewDays |
| CreateWithDrag | minHGap | ViewType |
| DayEndHour NEW 1.1.0 | minHourHeight | WeekHeaderTextFormat NEW 1.1.0 |
| DayNames | minVGap | YearHeatMap |
| DayStartHour NEW 1.1.0 | MonthNames | |
| DisplayDate | MyColors | |
| DisplayWeeknumber | MyStyle | |
| DragEvents | ScrollPosition | |
| Methods | |
| AddEvent | ImportICS |
| DeleteAllEvents | Redisplay |
| ExportICS | RemoveEvent |
| ExportToDB | Scroll |
| GetEvents | SetStyle |
| ImportFromDB | |
| ImportICS | |
| Shared Methods |
| Register |
Contents
Class Constants
Style
The following class constants are to be used to specify the Style to use with SetStyle function.
| Class Constant | Description |
|---|---|
| StyleDefault | The default style. |
| StyleICal | Macintosh iCal style. |
| StyleGoogle | Google Calendar style. |
| StyleDark | A dark style (black, grey and green). |
| StyleOutlook2010 | Office Outlook 2010 style. |
|- | | |- |===ViewType=== | |- |The following class constants are to be used with the ViewType property. | |- | | |-
|| Class Constant | Description |
|---|---|
| StyleDefault | The default style. |
| StyleICal | Macintosh iCal style. |
| StyleGoogle | Google Calendar style. |
| StyleDark | A dark style (black, grey and green). |
| StyleOutlook2010 | Office Outlook 2010 style. |
|- | | |- |===ViewType=== | |- |The following class constants are to be used with the ViewType property. | |- | | |-
|