* * *

Author Topic: Google Calendar API  (Read 1032 times)


  • Newbie
  • Posts: 1
Google Calendar API
« on: June 02, 2017, 01:53:53 pm »
Hi everyone :)

I try to get the Calendar-Information from Google using the GoogleCalendar-API shipped with lazarus.

I got the demo to run, this works fine. But know i've tried to get the colors for the events.

Code: Pascal  [Select]
  1.     function GetEventColor(ColorId:string):string;
  2.     var
  3.        colors : TColors;
  5.     begin
  6.          result := '';
  7.          colors := fCalendarAPI.ColorsResource.get;

So far so good.

How i can know get a TColorDefinition from the Class ? There are only two properties (calendar and event),
of Type TColorsTypecalendar/TColorsTypeevent. What i'm missing is a way to the TColorDefinition, so i can get background and foreground.

Thanks :)



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus