series color on creation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ChainSmokinCodeWriter
Newbie
Newbie
Posts: 6
Joined: Fri Oct 10, 2003 4:00 am
Location: new zealand
Contact:

series color on creation

Post by ChainSmokinCodeWriter » Tue Sep 28, 2004 9:43 pm

Hi, how do access the seriesColor property upon creation?

What I wanna do is to have is a kind of decendant of TLine series with some default properties, so what I did was something like:

constructor TThisLineSeries.create(Aowner: TComponent);
begin
inherited;
Outline.color := SeriesColor;
LinePen.Color := ApplyBright(seriesColor);
outline.visible := true;
end;

the seriescolor doesn't seem to be applied yet.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Sep 29, 2004 7:17 am

Hi.

Try using the GetDefaultColor(ParentChart.Count) instead.
Marjan Slatinek,
http://www.steema.com

ChainSmokinCodeWriter
Newbie
Newbie
Posts: 6
Joined: Fri Oct 10, 2003 4:00 am
Location: new zealand
Contact:

Post by ChainSmokinCodeWriter » Wed Sep 29, 2004 11:34 pm

Oh, now I get it, so default colors come from the parent chart, that's why it isn't there until we assign the series to a chart.

Thanks a lot.

Post Reply