Page 1 of 1

Gantt-Series: Change Color of single Gantt-Bar

Posted: Wed Apr 02, 2014 1:54 pm
by 15668444
Dear all,
It seems simple but I haven't found any solution:
I want to change the color of a single Gantt-Bar (TGanttSeries).
The gantt bars have all been created by:
GanttSeries.AddGanttColor(GanttAnf,GanttEnd,1,VPCharge,clYellow);

So all Bars are colored yellow.
Afterwards I want to recolor a single bar in red.
But how is it done?
Remark: I already set GanttSeries.ColorEachPoint:=true;

Heiko

Re: Gantt-Series: Change Color of single Gantt-Bar

Posted: Thu Apr 03, 2014 9:52 am
by yeray
Hi Heiko,
Heiko wrote:I want to change the color of a single Gantt-Bar (TGanttSeries).
The gantt bars have all been created by:
GanttSeries.AddGanttColor(GanttAnf,GanttEnd,1,VPCharge,clYellow);

So all Bars are colored yellow.
Afterwards I want to recolor a single bar in red.
But how is it done?
Remark: I already set GanttSeries.ColorEachPoint:=true;
Use the ValueColor array. Ie:

Code: Select all

  GanttSeries.ValueColor[3]:=clRed;