Recent

Author Topic: [solved] tvplanit: How can I make my events look colored?  (Read 511 times)

Nicole

  • Hero Member
  • *****
  • Posts: 972
[solved] tvplanit: How can I make my events look colored?
« on: July 26, 2022, 06:50:04 pm »
I want to see the colors of my cathegories in my view, but all stay gray.
This is what I tried (it lets my drop down list look nicely, but does not color the events in the calendar:

Code: Pascal  [Select][+][-]
  1.    with TvPlanItFrame.VpIniDatastore_Quelle.CategoryColorMap do begin
  2.        Category0.Description:='Finanz';
  3.        Category1.Description:='privat';
  4.        Category2.Description:='Haushalt';
  5.        Category3.Description:='Jahrestage';
  6.        Category4.Description:='RJO';
  7.        Category5.Description:='div intraday';
  8.        Category6.Description:='Feiertage USA';
  9.        Category7.Description:='Feiertage Deutschland';
  10.        Category8.Description:='Feiertage Österreich';
  11.        Category9.Description:='Sonstiges';
  12.  
  13.        Category0.Color:=Farbe_Typ1;
  14.        Category1.Color:=Farbe_Typ2;
  15.        Category2.Color:=Farbe_Typ3;
  16.        Category3.Color:=Farbe_Typ4;
  17.        Category4.Color:=Farbe_Typ5;
  18.        Category5.Color:=Farbe_Typ6;
  19.        Category6.Color:=Farbe_Typ7;
  20.        Category8.Color:=Farbe_Typ9;
  21.      // Farbe 9 lasse ich auf default
  22.  
  23.    end;  
« Last Edit: July 27, 2022, 07:50:27 am by Nicole »

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: tvplanit: How can I make my events look colored?
« Reply #1 on: July 26, 2022, 07:36:31 pm »
Category.Color is the color of the "gutter" (thick left border in the day view). What you probably need, is the Category.BackgroundColor.

Nicole

  • Hero Member
  • *****
  • Posts: 972
Re: tvplanit: How can I make my events look colored?
« Reply #2 on: July 27, 2022, 07:50:09 am »
exactly!
Thank you!

 

TinyPortal © 2005-2018