Google Calendar Delphi Componet Overview
Google Calendar Delphi Component supports Delphi 6 and higher (custom versions for Delphi 4 and 5 are possible) and works directly using official Google Calendar API. Official API use guarantees maximum compatibility and fewest possible modifications to future versions.
Features
- Create and edit calendars (all properties supported, including Time zones and Location)
- Create and edit events (all properties supported, including Reminders, Recurring and All day events)
- Access to XML code for each object with possibility to read and modify any fields for an object
- Unicode support for all text fields
- HTTPS support
Google Calendar Delphi Component is a non-visual component, offering simple and straightforward features.
Examples
- Connecting to Google Calendar and showing list of Calendars in listbox
GCalendars := TGCalendars.Create;
GCalendars.Connect('Email@gmail.com', 'Password');
GCalendars.Load;
for I := 0 to GCalendars.CalendarCount - 1 do
ListBox1.Items.Add(GCalendars.Calendars[I].Name);
GCalendars.Free; |
- Showing time of start/end and event names in Calendar
GCalendars[0].Load;
for I := 0 to GCalendars[0].EventCount - 1 do
with GCalendars[0].Events[I] do
ListBox2.Items.Add(Format('%s - %s %s', [DateTimeToStr(StartTime),
DateTimeToStr(EndTime), Title])); |
- Adding new event for 20th of April, starting at 10:00 and ending at 10:30 with a "What" field containing "Meeting John".
with GCalendars[0].NewEvent do
begin
StartTime := EncodeDate(2008, 4, 20) + EncodeTime(10, 0, 0, 0);
EndTime := EncodeDate(2008, 4, 20) + EncodeTime(10, 30, 0, 0);
Title := 'Meeting John';
Store;
end; |
- Deleting event with index number 5
GCalendars[0].DeleteEvent(5); |
|