Jump to content

set color in calendar event.


FlavioMacedo

Recommended Posts

23 minutes ago, FlavioMacedo said:

Is there any way / property to change the color of unicalendar events at runtime?

Hello,

Try this approach:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  with UniCalendarPanel1 do
  begin
    Calendars[0].DefaultColor := False;
    Calendars[0].Color := clYellow;

    JSInterface.JSCall('calendarStore.reload', []);
  end;
end;

 

Link to comment
Share on other sites

In a calendar I have several types of events such as prospects and customers (there are more than 20 different types)
I would like to identify each one of them in a different color.
One question... Is there a limit for calendars? If there isn't one, I can start with several calendars knowing that I can have more than 20 different ones.

Link to comment
Share on other sites

14 hours ago, FlavioMacedo said:

One question... Is there a limit for calendars? If there isn't one, I can start with several calendars knowing that I can have more than 20 different ones.

Hello,

You can use this number of calendars and more, but the number of calendars is directly proportional to the time the events are loaded.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...