Difference between revisions of "CalendarView"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
(Class Constants)
Line 119: Line 119:
 
==Class Constants==
 
==Class Constants==
  
===[[CalendarView.Style|Style]]===
+
===Style===
The following class constants are to be used to specify the Style to use with [[CalendarView.SetStyle|SetStyle]] function.
+
The following class constants are to be used to specify the[[CalendarView.Style|Style]]to use with[[CalendarView.SetStyle|SetStyle]]function.
  
 
{| class="genericTable"
 
{| class="genericTable"
Line 142: Line 142:
 
|}
 
|}
  
===[[CalendarView.ViewType|ViewType]]===
+
===ViewType===
The following class constants are to be used with the ViewType property.
+
The following class constants are to be used with the[[CalendarView.ViewType|ViewType]]property.
  
 
{| class="genericTable"
 
{| class="genericTable"
Line 165: Line 165:
 
|-
 
|-
 
|TypeOther
 
|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.
+
|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==
Line 172: Line 172:
 
*New:
 
*New:
 
**TypePicker constant
 
**TypePicker constant
**[[CalendarView.SelStart|SelStart]], [[CalendarView.SelEnd|SelEnd]] to set the selected dates in the CalendarPicker
+
**SelStart,[[CalendarView.SelEnd|SelEnd]]to set the selected dates in the CalendarPicker
**[[CalendarView.DayStartHour|DayStartHour]], [[CalendarView.DayEndHour|DayEndHour]]
+
**DayStartHour,[[CalendarView.DayEndHour|DayEndHour]]
**[[CalendarView.ForceAM_PM|ForceAM_PM]]
+
**ForceAM_PM
**[[CalendarView.Style|Style]] Property
+
**Style Property
 
**StyleOutlook2010 constant
 
**StyleOutlook2010 constant
**[[CalendarView.WeekHeaderTextFormat|WeekHeaderTextFormat]]
+
**WeekHeaderTextFormat
**[[CalendarView.Animate|Animate]]
+
**Animate
  
 
*Fix:
 
*Fix:
Line 189: Line 189:
 
*New:
 
*New:
 
**StyleDefault, StyleICal, StyleGoogle, StyleDark class constants
 
**StyleDefault, StyleICal, StyleGoogle, StyleDark class constants
**[[CalendarView.ImportFromDB|ImportFromDB]] function
+
**ImportFromDB function
**[[CalendarView.ExportToDB|ExportToDB]] function
+
**ExportToDB function
**[[CalendarView.RemoveEvent|RemoveEvent]] now has a RemoveFromDB property.
+
**RemoveEvent now has a RemoveFromDB property.
  
 
*Fix:
 
*Fix:
**CalendarView not updating after [[CalendarView.AddEvent|AddEvent]]
+
**CalendarView not updating after[[CalendarView.AddEvent|AddEvent]]
  
  
Line 201: Line 201:
 
*New:
 
*New:
 
**StyleDark
 
**StyleDark
**DisableDrag is replaced with [[CalendarView.DragEvents|DragEvents]] and [[CalendarView.CreateWithDrag|CreateWithDrag]]
+
**DisableDrag is replaced with[[CalendarView.DragEvents|DragEvents]]and[[CalendarView.CreateWithDrag|CreateWithDrag]]
  
 
*Fix:
 
*Fix:
Line 215: Line 215:
 
===Version 1.0.1 - Released 2012-04-02===
 
===Version 1.0.1 - Released 2012-04-02===
 
*New:
 
*New:
**[[CalendarView.DisplayWeeknumber|DisplayWeeknumber]] As Boolean
+
**DisplayWeeknumber As Boolean
**[[CalendarView.MyColors|MyColors]].WeekNumber
+
**MyColors.WeekNumber
 
**MyColors.WeekNumberBackground
 
**MyColors.WeekNumberBackground
 
**Day name is displayed inside the month grid for iCal style.
 
**Day name is displayed inside the month grid for iCal style.
Line 224: Line 224:
 
**SetLength Function in [[CalendarEvent]]
 
**SetLength Function in [[CalendarEvent]]
 
**VerticalGap and HorizontalGap properties for TypeYear
 
**VerticalGap and HorizontalGap properties for TypeYear
**New Event "[[CalendarView.DragEvent|DragEvent]]". Fires when a CalendarEvent is dragged or resized
+
**New Event "DragEvent". Fires when a CalendarEvent is dragged or resized
  
 
*Fix:
 
*Fix:
**Selected background color in month view if [[CalendarView.MyStyle|MyStyle]].MDayNumberPos=1
+
**Selected background color in month view if MyStyle.MDayNumberPos=1
 
**Day events in TypeWeek not aligned properly
 
**Day events in TypeWeek not aligned properly
  
Line 239: Line 239:
  
 
[[CalendarEvent]] Class.
 
[[CalendarEvent]] Class.
==See Also==
+
==External Links==
  
 
+
Download page:
[[CalendarEvent]] Class.
+
http://www.jeremieleroy.com/products.php#CalendarView

Revision as of 20: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


Class Constants

Style

The following class constants are to be used to specify theStyleto use withSetStylefunction.

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 theViewTypeproperty.

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 theViewDaysproperty to set the amount of days to display. If ViewDays=5 days from Monday to Friday are displayed.

History

Version 1.1 - Released 2012-05-02

  • New:
    • TypePicker constant
    • SelStart,SelEndto set the selected dates in the CalendarPicker
    • DayStartHour,DayEndHour
    • ForceAM_PM
    • Style Property
    • StyleOutlook2010 constant
    • WeekHeaderTextFormat
    • Animate
  • Fix:
    • Several graphic enhancements
    • Colors in StyleDark
    • Day names on Mac OS


Version 1.0.3 - Released 2012-04-11

  • New:
    • StyleDefault, StyleICal, StyleGoogle, StyleDark class constants
    • ImportFromDB function
    • ExportToDB function
    • RemoveEvent now has a RemoveFromDB property.
  • Fix:


Version 1.0.2 - Released 2012-04-03

  • Fix:
    • Day background color not filling the box in TypeMonth
    • Time background color not displaying in TypeWeek
    • Resizing event to make a 15 minute event in TypeWeek
    • TypeYear not displaying non**day events
    • OutOfBoundsException in DrawTime on Mac OS
    • Drawing long event in TypeMonth that finishes on last day of week


Version 1.0.1 - Released 2012-04-02

  • New:
    • DisplayWeeknumber As Boolean
    • MyColors.WeekNumber
    • MyColors.WeekNumberBackground
    • Day name is displayed inside the month grid for iCal style.
    • Drag events in Month and Week view to change start date/time
    • Resize event in TypeWeek
    • HeatMap in TypeYear
    • SetLength Function in CalendarEvent
    • VerticalGap and HorizontalGap properties for TypeYear
    • New Event "DragEvent". Fires when a CalendarEvent is dragged or resized
  • Fix:
    • Selected background color in month view if MyStyle.MDayNumberPos=1
    • Day events in TypeWeek not aligned properly



Version 1.0.0 - Released 2012-03-30

First release

See Also

CalendarEvent Class.

External Links

Download page: http://www.jeremieleroy.com/products.php#CalendarView