Jump to content
uniGUI Discussion Forums
Sign in to follow this  
erich.wanker

How set CalendarEvent.color?

Recommended Posts

Hi ..

i found out what CalendarEvent has 4 predefined CSS styles...
if i create a CalendarEvent with CalendarId 1 - it uses the first css

i want to change the colors of the 4 styles ..

How can i do this?

 

 

 

procedure TS_TOOL_KALENDER.termin_eintragen(wann:TDateTime;was:String;id:Integer;mein_status:integer);
var
  E : TUniCalendarEvent;
begin

E:=UniCalendarPanel1.Events.Add;
E.StartDate :=wann;
E.EndDate   :=wann;
E.Title     :=was;
e.EventId   :=id;

if mein_status = 0 then  e.CalendarId:=1;   // open schedule
if mein_status = 1 then  e.CalendarId:=2;   // closed schedule

E.IsAllDay  :=true;

end;

 

Share this post


Link to post
Share on other sites

Hi,

If I understand you correctly, for example:

UniCalendarPanel -> Calendars -> Calendar-0 ->

     Color = clLime

     DefaultColor = False

Share this post


Link to post
Share on other sites

.. perfect .. thank you

 

just another question:

UniCalendarPanel in Month-view:  the days have all white background .. how can i set the "today"-panel to gray?

 

ThanX

Erich

Share this post


Link to post
Share on other sites

CustomCSS:

.x-calendar-weeks-today-cell {
	background-color: #ddd;
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×