Gantt-Series: Change Color of single Gantt-Bar

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Heiko
Newbie
Newbie
Posts: 2
Joined: Fri Jan 31, 2014 12:00 am

Gantt-Series: Change Color of single Gantt-Bar

Post by Heiko » Wed Apr 02, 2014 1:54 pm

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

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Thu Apr 03, 2014 9:52 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply