Recent

Author Topic: Google Calendar API  (Read 2812 times)

Ghostwalker

  • 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;
  4.  
  5.     begin
  6.          result := '';
  7.          colors := fCalendarAPI.ColorsResource.get;
  8.  

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 :)

 

TinyPortal © 2005-2018