Difference between revisions of "CalendarView"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision)
Line 18: Line 18:
 
|-
 
|-
 
|{{Event | name=ViewChange | params=StartDate As Date, EndDate As Date | description= | newinversion=}}
 
|{{Event | name=ViewChange | params=StartDate As Date, EndDate As Date | description= | newinversion=}}
 +
|-
 +
 
|-
 
|-
 
|}
 
|}
Line 56: Line 58:
 
|width=33%|{{Property | name=DayStartHour | type=Single | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=DayStartHour | type=Single | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=MonthNames | type=String | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=MonthNames | type=String | description= | readonly=no | newinversion= | version=1.1.0}}
 +
 +
|-
 
|width=33%|{{Property | name=DisplayDate | type=Date | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=DisplayDate | type=Date | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=MyColors | type=Colors | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=MyColors | type=Colors | description= | readonly=no | newinversion= | version=1.1.0}}
 +
 +
|-
 
|width=33%|{{Property | name=DisplayWeeknumber | type=Boolean | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=DisplayWeeknumber | type=Boolean | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=MyStyle | type=Styles | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=MyStyle | type=Styles | description= | readonly=no | newinversion= | version=1.1.0}}
 +
 +
|-
 
|width=33%|{{Property | name=DragEvents | type=Boolean | description= | readonly=no | newinversion= | version=1.1.0}}
 
|width=33%|{{Property | name=DragEvents | type=Boolean | description= | readonly=no | newinversion= | version=1.1.0}}
 +
|width=33%|{{Property | name=ScrollPosition | type=Double | description= | readonly=no | newinversion= | version=1.1.0}}
 
|}
 
|}
  
Line 87: Line 96:
 
|-
 
|-
 
|width=50%|{{Method | name=ImportFromDB | params=RS As RecordSet, ID As String = "ID", StartDate As String = "Start", EndDate As String = "End", Title As String = "Title", EventColor As String = "Color", Location As String = "Location", Description As String = "Description" | description= | returntype=Boolean | newinversion=}}
 
|width=50%|{{Method | name=ImportFromDB | params=RS As RecordSet, ID As String = "ID", StartDate As String = "Start", EndDate As String = "End", Title As String = "Title", EventColor As String = "Color", Location As String = "Location", Description As String = "Description" | description= | returntype=Boolean | newinversion=}}
 +
 +
|-
 
|width=50%|{{Method | name=ImportICS | params=f As FolderItem, DefaultColor As Color = &c4986E7 | description= | newinversion=}}
 
|width=50%|{{Method | name=ImportICS | params=f As FolderItem, DefaultColor As Color = &c4986E7 | description= | newinversion=}}
 +
 +
|-
 
|}
 
|}
  
Line 96: Line 109:
 
|-
 
|-
 
|{{Method | name=Register | params=Name As String, SerialKey As Integer | description= | returntype=Boolean | newinversion=}}
 
|{{Method | name=Register | params=Name As String, SerialKey As Integer | description= | returntype=Boolean | newinversion=}}
 +
|-
 +
 
|-
 
|-
 
|}
 
|}

Revision as of 16:46, 2 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
DateSelected
DragEvent
EditEvent
NewEvent
Open
ViewChange


Properties
AdaptWeeksPerMonth FirstDate SelEnd
Animate   NEW 1.1.0 FirstDayOfWeek SelStart
Border ForceAM_PM Style
ColorWeekend LastDate ViewDays
CreateWithDrag minHGap ViewType
DayEndHour minHourHeight WeekHeaderTextFormat
DayNames minVGap YearHeatMap
DayStartHour MonthNames
DisplayDate MyColors
DisplayWeeknumber MyStyle
DragEvents ScrollPosition



Methods
AddEvent ImportICS
DeleteAllEvents Redisplay
ExportICS RemoveEvent
ExportToDB Scroll
GetEvents SetStyle
ImportFromDB
ImportICS


Shared Methods
Register


History

Version 1.1 - Released 2012-05-02

  • New:
    • TypePicker
    • SelStart, SelEnd to 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:
    • CalendarView not updating after AddEvent


Version 1.0.2 - Released 2012-04-03

  • New:
    • StyleDark
    • DisableDrag is replaced with DragEvents and CreateWithDrag
  • 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